Newbie at VB.NET creating a file

higginbr

New member
Joined
Feb 3, 2006
Messages
1
Programming Experience
Beginner
Ok i've got a vb application that i use to download data from the Active server and writes it to a file.

to create and or open the txt file in vb 6 i use

Open "ADUserList.txt" For Output As #1

then to write i use

Print.

How on earth do i get the same function in VB.NET?

Any good books on VB.NET?
 
For text files check out the system.IO classes for reading and writing. It's all in there. As for creating a text file the easiest way is to just add one to your project or programatically....

VB.NET:
Dim fs AsNew System.IO.FileStream("File.txt", IO.FileMode.CreateNew)
 
Back
Top