I was wondering if any could help me figure out how to update a .dat file at a specific point within the file, eg at line 3 character 64.
I know how to use LOF and Print #1, Tab() etc, but I can't get it to appear at then end of the line I want to update, the new text always appears at the bottom of the file. The file is being opened for append, I have tried to open as Binary but keep getting a Bad File Mode error whenever it is accessed.
Sorry I don't speak VB but I'm sure there is a simple answer. If you are opening the file as "Append" your changes are bound to be applied to the end of the file. Is there an option to open the file as "Write" or "Read/Write" in VB (what version)?
using the append method, but I was sat thinking about it, and realised that the seek command should hopefully resolve the issue, in response to Tarans comments, I am the originating author, and the dat file is in essence a text file with a different file extension, I'm using VB6 sp 5.
Thanks for the tips. I'll let you know if it works.
This thread is now locked and can not be replied to.