Originally posted by laasunde
I understand what you mean by not loading the whole thing into memory but when I wrote the example it was a 14 byte file so it's wasnt really an issue, for me anyway.
For future reference, when programming you shouldn't program for a single specific case. Always program for every case.