G
Guest
Hi,Everybody:
In EVB(or VB6), WriteFile() function starts writing data
to the file at the position indicated by the file pointer.
After the write operation has been completed, the file
pointer is adjusted by the number of bytes actually
written. But in VB.net which function can replace it? May
i use System.IO.FileStream.Seek locate the location and
then use System.IO.streamwriter to write char to txt file?
FS = New IO.FileStream(workDir & "\" & appInputFile,
IO.FileMode.Create, IO.FileAccess.Write)
sw = New IO.StreamWriter(FS)
FS.Seek((CurrentPoint - 1) *
FixedLen,IO.SeekOrigin.Current)
sw.Write(string)
In EVB(or VB6), WriteFile() function starts writing data
to the file at the position indicated by the file pointer.
After the write operation has been completed, the file
pointer is adjusted by the number of bytes actually
written. But in VB.net which function can replace it? May
i use System.IO.FileStream.Seek locate the location and
then use System.IO.streamwriter to write char to txt file?
FS = New IO.FileStream(workDir & "\" & appInputFile,
IO.FileMode.Create, IO.FileAccess.Write)
sw = New IO.StreamWriter(FS)
FS.Seek((CurrentPoint - 1) *
FixedLen,IO.SeekOrigin.Current)
sw.Write(string)