-
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
-
Open filename for append as #1
-
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
-
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.
-
Thanks
Sussed it
Cheers
The Iceman