home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,177 of 10,840   
   hotmail.com to All   
   Need Help with Output to Text   
   29 Jan 05 20:26:53   
   
   From: @   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca