Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult Lotto()
- {
- String line;
- using (StreamReader sr = new StreamReader(System.Web.Hosting.HostingEnvironment.MapPath("~/App_Data/dl.txt")))
- {
- // Read the stream to a string, and write the string to the console.
- line = sr.ReadToEnd();
- Console.WriteLine(line);
- }
- return View(line);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement