VB6 to VB.NET Code Conversion

deadlyhawk

New member
Joined
Mar 5, 2007
Messages
1
Programming Experience
1-3
Open file For Binary As #1
Put #1, Val(val) + 1, var
Close #1

This code is working fine in VB6 but not in VB.NET can anybody please suggest the converted code here
 
Its lame code too.. it always assumes that handle #1 will be available.. Ick


Dim fs as FileStream = System.IO.File.OpenWrite("c:\temp\whatever.bin")
fs.Write(<whatever val is as a byte array>)
fs.Close


The code fragment you have supplied, is too small or generic to provide an accurate answer.
 
Back
Top