How to read each line of a file
Posted on 2013-06-15
This is the file
I can locate the file on the ftp server.
How can I read each line and column?
I found this in online help:
FileInfo file = new FileInfo(myFileName);
//Open the stream and read each line and column
using (FileStream fs = file.OpenRead())
// Read each line until the end of file
// Read Line 1: AA.P,20130603,93,93,93,93,100
// For each line, read each column
// Read AA.P into var1 ,20130603
// Read 20130603 into var2
// etc for remaining columns