this is show how to read text from a text file(C#).
1 2 3 4 5 6 7 8 9 10 | string str = ""; using (StreamReader sr = new StreamReader("G:\\zencart\\categorytlinks.txt", System.Text.Encoding.Default)) { strline = sr.ReadLine(); while(strline!=null){ str += strline+"\r\n"; } sr.Dispose(); sr.Close(); } Response.Write(str); |


