Here's my script--need help with output to text file (must be missing
something here like closing the file or something). Any help would be
greatly appreciated here. Lastly, I'm using Visual Basic .NET 2003.
Source...
Dim vFileName As String
vFileName = Format(Now(), "MM - dd - yyyy") & " - " & vName
Dim oFile As System.IO.File
Dim oWrite As System.IO.Strea mWriter
oWrite = oFile.CreateTex t("C:\" & vFileName & ".txt")
FileOpen(1, "C:\" & vFileName & ".txt", OpenMode.Output ) 'CAN'T GET TEXT TO
WRITE TO FILE
oWrite.WriteLin e("Debugging Code is Fun")
oWrite.WriteLin e("And Pigs Fly")
Todd
something here like closing the file or something). Any help would be
greatly appreciated here. Lastly, I'm using Visual Basic .NET 2003.
Source...
Dim vFileName As String
vFileName = Format(Now(), "MM - dd - yyyy") & " - " & vName
Dim oFile As System.IO.File
Dim oWrite As System.IO.Strea mWriter
oWrite = oFile.CreateTex t("C:\" & vFileName & ".txt")
FileOpen(1, "C:\" & vFileName & ".txt", OpenMode.Output ) 'CAN'T GET TEXT TO
WRITE TO FILE
oWrite.WriteLin e("Debugging Code is Fun")
oWrite.WriteLin e("And Pigs Fly")
Todd
Comment