I needed something that worked fine, almost like the class CFile of MFC in Visual C++. I coded this class which basically does the same, even if not with the same efficiency, due to PHP limitations anyway. Developers can read and write data in both text and binary mode, so that they can read/save strings, numerical variables (integer, double, float) and arrays. They can also move the file pointer back and forth for any need. The attached examples cover simple file management, reading of file header structures (jpeg and bmp, here), reading/writing arrays. Although they are rather naive, the goal of these examples is just to show the features of this class. Developers would benefit of this class for its potential functionalities.