Creating Files in .NET

SolarCoasters
01-22-2004, 08:43 PM
I'm new to VB.NET and am a bit confused because it seems very different then V.6. Is creating and opening a file done differently in .NET because i tried the old code:

Dim intFNum As Integer
intFNum = FreeFile
Open "path" For Output As #intFNum
Print #intFNum, value
Close #intFNum


and that doesn't seem to work. How is saving and loading of files done in .NET?
Thank you

Optikal
01-22-2004, 09:21 PM
In .Net is is done VERY differently. Rather than try and give you a tutorial here, I'll just give you a pointer to the appropriate section in MSDN, it explains everything you could want to know about File I/O in .Net.

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconbasicfileio.asp

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum