Hey everyone,

I have a quick question that hopefully someone can answer. I'm trying to read the first line of a text file without loading the entire file into memory. The Open() function loads the entire file, so I'm not sure it will work in this case.

In case anyone is interested, the reason I'm doing this is because the files are raw database dumps. Most of them are 100+ MB in size. As this is a production server, I'm trying not to use any more resources than necessary.

Any help is greatly appreciated.