-1
rated 0 times
[
1]
[
2]
/ answers: 1 / hits: 16928
/ 11 Years ago, wed, august 21, 2013, 12:00:00
I want to fetch the Text data from a Text file ::
For that, I have used code like ::
public ActionResult Log()
{
StreamReader reader = new StreamReader(Server.MapPath(~/Views/Builder/TestLogger.txt));
return View(reader);
}
I have made this text file from Log4Net.
I wat to know that How can I fetch the contents of this Text file in my View or action of MVC application.
More From » c#