-
TextStream Object
I just started learning about the FileSystemObject and have a few questions.
What is the difference between using the FSO createtextfile and the Output method or the opentextfile and the Input method, I mean why use one over the other. eg
PHP Code:
dim OStream as TextStream
set OStream=fso.CreateTextFile("c:\testFile.txt",true,false)
OStream.WriteLine text1
or
file=freefile
strFile = "c:\testFile2.txt"
Open strFile For Output As #File
Print #File, text1
Close #File
Just curious.
-
this is OLD VB
Code:
file=freefile
strFile = "c:\testFile2.txt"
Open strFile For Output As #File
Print #File, text1
Close #File
Now this takes advantage of MS COM component thus being faster and efficient!
Code:
dim OStream as TextStream
set OStream=fso.CreateTextFile("c:\testFile.txt",true,false)
OStream.WriteLine text1