Right now my program loads a text file into memory using the TStringList. This beginning to be a memory problem and I need another solution. I do two things to the file, 1. I search it, and 2. I copy the first line to a string and then delete it from the file. Is there any way I can do this without using the TStringList and without loading the file into memory? Please show code.