D
doomsday123
I have a txt file that I am reading and displaying on a page. The text
in the txt is...
------------------------------------------------------------------------------------------
Discontinued P/N Replacement P/N
71-TNPW0603100KBEBD 71-TNPW0603100KBETY
71-TNPW0603100RBEBD 71-TNPW0603100RBETY
71-TNPW0603105KBEBD 71-TNPW0603105KBETY
------------------------------------------------------------------------------------------
When I use this method to display the text on a page...
------------------------------------------------------------------------------------------
StreamReader fsText = fi.OpenText();
StringBuilder sb = new StringBuilder();
while (!fsText.EndOfStream)
{
sb.Append(fsText.ReadLine() + "<br />");
}
------------------------------------------------------------------------------------------
The text comes out like this...
------------------------------------------------------------------------------------------
Discontinued P/N Replacement P/N
71-TNPW0603100KBEBD 71-TNPW0603100KBETY
71-TNPW0603100RBEBD 71-TNPW0603100RBETY
71-TNPW0603105KBEBD 71-TNPW0603105KBETY
------------------------------------------------------------------------------------------
Is there any way to get the text to display exactly like it is in the
txt file?
Thanks
in the txt is...
------------------------------------------------------------------------------------------
Discontinued P/N Replacement P/N
71-TNPW0603100KBEBD 71-TNPW0603100KBETY
71-TNPW0603100RBEBD 71-TNPW0603100RBETY
71-TNPW0603105KBEBD 71-TNPW0603105KBETY
------------------------------------------------------------------------------------------
When I use this method to display the text on a page...
------------------------------------------------------------------------------------------
StreamReader fsText = fi.OpenText();
StringBuilder sb = new StringBuilder();
while (!fsText.EndOfStream)
{
sb.Append(fsText.ReadLine() + "<br />");
}
------------------------------------------------------------------------------------------
The text comes out like this...
------------------------------------------------------------------------------------------
Discontinued P/N Replacement P/N
71-TNPW0603100KBEBD 71-TNPW0603100KBETY
71-TNPW0603100RBEBD 71-TNPW0603100RBETY
71-TNPW0603105KBEBD 71-TNPW0603105KBETY
------------------------------------------------------------------------------------------
Is there any way to get the text to display exactly like it is in the
txt file?
Thanks