Create StreamReader from IsolatedStorageFileStream (VB.net) : StreamReader « File Directory « ASP.NET Tutorial






<%@ Page Language="VB" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.IO.IsolatedStorage" %>

<script runat="server">
   sub Page_Load(Sender as Object, e as EventArgs)
      dim stream as new IsolatedStorageFileStream("Default.aspx", FileMode.OpenOrCreate)
      dim objReader as new StreamReader(stream)

      while objReader.Peek() > -1
         Response.Write(Server.HTMLEncode(objReader.ReadLine) & "<br>")
      end while
      objReader.Close
   end sub
</script>

<html>
<body>
</body>
</html>








10.18.StreamReader
10.18.1.Read file using StreamReader (VB.net)
10.18.2.Create StreamReader from IsolatedStorageFileStream (VB.net)