By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Streamwriter

P: n/a
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?
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Jon
Would have thought you'd need vb.net to use it, but perhaps not.

Could try System.IO.StreamWriter

Jon
"Opyuse" <Op****@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
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?

Nov 21 '05 #2

P: n/a
Jon
It's in

Mscorlib.dll

Jon
"Jon" <Em***********@SomewhereOrOther.com> wrote in message
news:OH**************@TK2MSFTNGP12.phx.gbl...
Would have thought you'd need vb.net to use it, but perhaps not.

Could try System.IO.StreamWriter

Jon
"Opyuse" <Op****@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
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?


Nov 21 '05 #3

P: n/a
"Jon" <Em***********@SomewhereOrOther.com> schrieb:
Would have thought you'd need vb.net to use it, but perhaps not.


Yes, you need VB.NET.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4

P: n/a
Jon
Ignore that last post
"Jon" <Em***********@SomewhereOrOther.com> wrote in message
news:#G**************@TK2MSFTNGP10.phx.gbl...
It's in

Mscorlib.dll

Jon

Nov 21 '05 #5

P: n/a
Cheers afraid of that. just thought it looked better whated to see if I could
use it.

"Herfried K. Wagner [MVP]" wrote:
"Jon" <Em***********@SomewhereOrOther.com> schrieb:
Would have thought you'd need vb.net to use it, but perhaps not.


Yes, you need VB.NET.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.