home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / ReadWrite.aspx < prev    next >
Encoding:
Text File  |  2000-06-08  |  1.1 KB  |  37 lines

  1.  
  2. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  3.  
  4. <%
  5.     runsample = Server.MapPath("/quickstart/howto/samples/IO/readwrite")
  6.     viewsource = "/quickstart/howto/samples/IO/readwrite/readwrite.src"
  7.     icon = "/quickstart/images/console.gif"
  8.     caption = "ReadWrite.exe"
  9. %>
  10.  
  11. <h4>How Do I...Read from and write to a binary file?</h4>
  12.  
  13. <div class="indent" style="width:660">
  14. This sample illustrates basic binary file input and output using the BinaryReader, BinaryWriter and FileStream classes.
  15. </div>
  16.  
  17. <h4>Example</h4>
  18.  
  19. <p>
  20. <div class="indent">
  21. <a target="_blank" href="<%=runsample%>">
  22. <img style="border-color:black" border=1 src="<%=icon%>"><br>
  23. </a>
  24. <div class="caption"><%=caption%></div><br>
  25. [<a target="_blank" href="<%=runsample%>">View Sample</a>] | 
  26. [<a target="_blank" href="/quickstart/util/srcview.aspx?path=<%=viewsource%>">View Source</a>]<p>
  27. </div>
  28.  
  29. <h4>Source Code</h4>
  30.  
  31. <div class="code">
  32. <xmp>
  33. <!-- #include virtual="/quickstart/howto/samples/io/readwrite/readwrite.cs" -->
  34. </xmp>
  35. </div>
  36.  
  37. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->