<%@ Page Language="C#" %> <html> <head> <title>Simple ASP.NET Page</title> </head> <body> <% System.IO.StreamReader sr = new System.IO.StreamReader("/file.txt"); string line; while(sr.Peek() != -1) { line = sr.ReadLine(); Response.Write(Server.HtmlEncode(line) + "<br/>"); } %> </body> </html>