|
-
Jul 31st, 2000, 09:21 AM
#1
Thread Starter
Addicted Member
Help,
I have opened a file ( partially populated ) for append and then i am writing some new data to this file.
How do i make sure that the data I am writing gets put onto the next line and not over data that already exists in the file?????
At the moment every time i call the write function it overwrites the data that already exists.
Any ideas?
Regards
Mark
-
Jul 31st, 2000, 09:22 AM
#2
Fanatic Member
Open filename for append as #1
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 31st, 2000, 10:23 AM
#3
New Member
Hail,
Umm, I have'nt used the Append in a long time. But i'd say do have alook at Help. It probably say that Write might not work with append. Try another way of writing to the file,instead of Write.
Sorry. Thats all.
Regards,
---------------
Rowie
-
Jul 31st, 2000, 10:27 AM
#4
Hyperactive Member
When you open in append, unless you need to have your test in quotes (which using the Write handle will do), just use print. The plus with using print is that it does not overwrite the current info. Use something like this:
Code:
Dim FF as long
FF=FreeFile
Open "c:\myFile.txt" for Append as FF
Print #FF, stufftosave
Close FF
Hope this helps.
-
Jul 31st, 2000, 11:12 AM
#5
Thread Starter
Addicted Member
Thanks
Sussed it
Cheers
The Iceman
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
|