Name: Anonymous 2009-07-26 17:11
I want to read the subject.txt, but it's 1,5 mebibyte of data that I don't want to be read every time I run the script. How do I make it read the file lazily?
fopen() and fgets() don't read the whole file into memory every time. It already works the way you want it to.