Use filebuf instead of ifstream in allafplay