Response ASP.Net

<%@ Page Language="vb" %>

   
      Writing a file to output in ASP.NET
      
         Sub Page_Load()
            Response.WriteFile(MapPath("file.txt"))
         End Sub