Read file and display its content on the page (VB.net) : Write File « Response « ASP.Net






Read file and display its content on the page (VB.net)

<%@ Page Language="VB" %>
<html>
  <body>
    <H2>Response.WriteFile()</H2>
    <%
    Dim filename As String
    filename = "file.txt"
    Response.WriteFile(filename)
    %>
  </body>
</html>

<%--


--%>

           
       








Related examples in the same category

1.Writing a file to output (VB.net)
2.Read data from text file (C#)
3.Write file (C#)