If i understand you correctly, your text file looks like this:
Comments:hi how are you?
name:kalsdfsaf
posted on:20/22/23
-----------------------
comment:jkasdfa;kl;lsafdsafasdf
name:asdfsafsafdfsdff
posted on:20/22/93
-----------------------
but when you read your text file the data gets displayed on your website like this:
Comments:hi how are you?name:
kalsdfsafposted on:20/22/23--
-------------------comment:jk
asdfa;kl;lsafdsafasdfname:asd
fsafsafdfsdff----------------
----
Correct?
Here is your problem, in your text file the end of line and carriage return is represented by these characters: \r\n
The issue is, when you read this information from your text file and display it on your website, a web browser doesn't interpert \r\n so your lines run together!
To remedy this, when you are writing the informaiton to your page do something like this:
StreamReader sr = File.OpenText("<path>");
string foo = sr.ReadToEnd().Replace("\r\n", "<br />");
or
string foo = sr.ReadToEnd().Replace(System.Environment.NewLine, "<br />");
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========