Hi folks,
I am trying to display large plain text files (5-6MB) on a web form inside a label, but the load just take forever.
These text files are in a remote file server.
Plus, the return lines are not kept when displaying the text file content, any suggestions on that too?
I use
Code is below for your suggestions and insights.
1 Stream stream = new FileStream(file_path, FileMode.Open, FileAccess.Read);
2 BufferedStream bstream = new BufferedStream(stream);
3 StreamReader reader = new StreamReader(bstream, true);
4
5 lblLog.Text = String.Empty;
6 lblLog.Text = reader.ReadToEnd();
7
8 reader.Close();
9 re ...
Go to the complete details ...