StreamReader and special tag problem
-
Hi, I try to import a simple text file that have many rows with a special row format Example: |item|123|any items|4.50| When I read the lines in from the text file it removes the '|' tag. Why is that?? Example Code: StreamReader importFile = File.OpenText(txtPath.Text); txtLines.Text = txtLines.Text + importFile.ReadLine(); I know I'm missing something simple. Thanks for any help.
-
Hi, I try to import a simple text file that have many rows with a special row format Example: |item|123|any items|4.50| When I read the lines in from the text file it removes the '|' tag. Why is that?? Example Code: StreamReader importFile = File.OpenText(txtPath.Text); txtLines.Text = txtLines.Text + importFile.ReadLine(); I know I'm missing something simple. Thanks for any help.
Perhaps | is a delimiter for the stream reader ? Is it reading the whole line every time, or up to the | ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
Perhaps | is a delimiter for the stream reader ? Is it reading the whole line every time, or up to the | ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog