This group is really for VB6 and earlier. I recommend you take a look at the
groups devoted exclusively to .net programming on the microsoft news server,
named such as:
news://msnews.microsoft.com/microsof...dotnet.general news://msnews.microsoft.com/microsof...t.languages.vb news://msnews.microsoft.com/microsof....vsnet.general news://msnews.microsoft.com/microsof...studio.general news://msnews.microsoft.com/microsof....vstudio.setup
.... etc.
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Todd Shillam" <tshillam(@)hotmail.com> wrote in message
news:TI********************@comcast.com...
: 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.StreamWriter
: oWrite = oFile.CreateText("C:\" & vFileName & ".txt")
:
: FileOpen(1, "C:\" & vFileName & ".txt", OpenMode.Output) 'CAN'T GET TEXT
TO
: WRITE TO FILE
: oWrite.WriteLine("Debugging Code is Fun")
: oWrite.WriteLine("And Pigs Fly")
:
:
: Todd
:
: