Sunday, 29 September 2013

using fstream style in php

using fstream style in php

I have been using file streams with c++ for years and can load character
strings from a file like this:
char a[30],b[30],c[30];
ofstream fp;
fp.open("file.txt");
fp<<a<<b<<c;
Is there a way to read strings from a file in PHP in the same fashion
without reading a whole line or file?

No comments:

Post a Comment