Return to Snippet

Revision: 30867
at August 24, 2010 14:07 by indra


Initial Code
Dim sr As New StreamReader("c:\TESINPUT.TXT")
Dim ws As New StreamWriter("c:\TESTOUTPUT.TXT", False)

Do While sr.Peek <> -1
   ws.WriteLine(sr.ReadLine())
Loop

sr.Close()
ws.Close()

Initial URL

                                

Initial Description
Simple function to read and write file from vb.net

Initial Title
Reading and Writing textfile

Initial Tags

                                

Initial Language
VB.NET