Readline is reading entire text document
Posted on 2009-03-30
I have two ASP Scripts. One creates a text file of data from a database. The second file calls that first file then opens the text file that it created.
What I am struggling with is just gabbing the first line of the text file (it contains my column names). When I use ReadLine it is reading the entire text file and not just the first line. If I open the text file in notepad, all the data is on separate lines as it should be.
So, I am thinking that I am either not writing the line feeds properly or I am not using the ReadLine method properly.
The code is below (in the next two comments fields). The CreateFile.asp is the file that creates the data file. The GetData.asp file is the one that proccesses the file.