simple i kno, and ive done it before but have forgot
k.. ive got a text file and im usin my program to write to it, but everytime it writes to it, all the old content is gone! because im using the wrong method, but i dunno whats the right method :s heres what ive got atm:
help appreciatedVB Code:
Dim fso, textfile Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists("c:\test.txt") = True Then Set textfile = fso.OpenTextFile("c:\test.txt", ForWriting) Else Set textfile = fso.CreateTextFile("c:\test.txt", True) End If





Reply With Quote