a guest Oct 15th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public ActionResult Lotto()
  2.         {
  3.             String line;
  4.             using (StreamReader sr = new StreamReader(System.Web.Hosting.HostingEnvironment.MapPath("~/App_Data/dl.txt")))
  5.             {
  6.                 // Read the stream to a string, and write the string to the console.
  7.                  line = sr.ReadToEnd();
  8.                 Console.WriteLine(line);
  9.             }
  10.             return View(line);
  11.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand