Friday, January 8, 2010

Write a single line of code to read the entire content of the text file.

User following code

string strContent = System.IO.File.ReadAllText(Server.MapPath("~/MyTextFile.txt"));

No comments:

Post a Comment