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?