Take a look at the following code
snippet. Use the streamreader and streamwriter in this scenario. Imports System.IO Imports System.Text Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim fs As FileStream = New FileStream("d:\tempewtest.dat", _ FileMode....