|
-
Mar 10th, 2000, 11:57 AM
#1
Thread Starter
Lively Member
Hi,
In this function I can write a string in a *.TXT file.
But the text appears always on top of the file. So when I write for the 2nd time, I automaticly overwrite the previous written string with the new string.
How can I write the next string to the next empty line of my *.TXT file?
Thanks
THE CODE:
Call WriteFile("c:\MyWriteFile\Test.txt", Now())
Function WriteFile(FileName as string, Contents as string)
Dim i as Integer
i = FreeFile
Open FileName for Output as #i
print #i, Contents
Close #i
End Function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|