Re: Dumping changed data into a text file
- From: "McKirahan" <News@xxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 08:22:19 -0500
<verukins@xxxxxxxxxxx> wrote in message
news:1125493292.929843.289190@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> hi,
> Im trying to dump the contents of an array into a text file (each on
> a new line), which is no problem. Then on the next call of the script,
> i want to check if the values already exist, and if not, append new
> lines at the end of the text file as approriate.
>
> at the moment im using Do While CSV2.AtEndOfStream <> True, but using
> that i cannot write to the file.
>
> any help much appreciated.
Const ForAppending = 8
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objOTF
Set objOTF = objFSO.OpenTextFile("c:\test.txt",ForAppending,True)
objOTF.WriteLine("Hello World")
Set objOTF = Nothing
Set objFSO = Nothing
Save with a ".vbs" extension, run it multiple times,
then look at the file "c:\test.txt".
.
- References:
- Dumping changed data into a text file
- From: verukins
- Dumping changed data into a text file
- Prev by Date: Bind fso objects to drop down list
- Next by Date: Re: How to ping multiple machines from txt file?
- Previous by thread: Dumping changed data into a text file
- Next by thread: Bind fso objects to drop down list
- Index(es):
Relevant Pages
|