File IO Access

Condilyo

New member
Joined
Jun 1, 2005
Messages
1
Programming Experience
Beginner
Hello.

I use SharpDevelop with the Microsoft Visualbasic.Net framework, using the Console(nonGUI version) and I wanted to know how how file IOs can be done?

With the old BASIC method:

VB.NET:
Type NameData
DIM TheName As String
DIM Location As String
DIM IDNumber As Integer
END TYPE
 
DIM EE as NameData
Open "MyData.Dat" for Random as #1 LEN=LEN(EE)
 
EE.TheName = "Robert"
EE.Location = "Test City"
EE.IDNumber = 133
 
Put #1,1,EE
 
Close #1
Can anyone tell me how this can be done in VB.NET?

I've tried other methods but ended up getting compiler errors.

This is needed real badly with the game I am creating using the custom game library.

Thanks.
 
Back
Top