reading text files

  • Thread starter Thread starter Leonard Wright
  • Start date Start date
Hello nameless,

Good for you, I suspect you were meaning to ask something, but unless you do, we can't help you.
 
What i need to no is the coding to display the contents of text
delimited text file into text boxes
 
Well, I'm not away of any easy way to read comma delimited text files.

You can read textfiles by using

FileStream fs = File.OpenRead("filename.txt");
string data = fs.ReadToEnd();
fs.Close();

You could split the data long \r\n or parse the filestream through a StreamReader and use ReadLine, then split the resulting line by the comma. However, things like "data","da,ta","data" would not give the expected result.

This page may provide some ideas.

http://www.codeguru.com/Csharp/.NET/net_data/sortinganditerating/article.php/c6387/
 
Back
Top