Streamwriter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dim sw As New IO.StreamWriter("File path")
sw.WriteLine ("This is a line of text")
sw.Flush()
sw.Close

I got this sample from Crouchie1998

but the vb program VB 6.0 doesn't recognise the IO.StreamWriter() part.
would there be a reason for this maybe I'm not using the right libary?
 
Would have thought you'd need vb.net to use it, but perhaps not.

Could try System.IO.StreamWriter

Jon
 
Cheers afraid of that. just thought it looked better whated to see if I could
use it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top