Login | |
|
 |
RE: Re: Writing to a file (.dat) - 3/30/2006 8:48:32 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Old question but I wanted to put in the correct answer so searchers would find it. The file needs to be open for Appending which is a constant of 8. SO: Function WriteLineToFile(filename) Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 8 Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile(DATA_PATH & filename, ForAppending, False) f.WriteLine filename End Function
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|