Is it possible to "save" your position in a text file from one session to the next. I would like to write a text viewer that will save a user's location in a file much like a bookmark does for a book.
Old Man
Printable View
Is it possible to "save" your position in a text file from one session to the next. I would like to write a text viewer that will save a user's location in a file much like a bookmark does for a book.
Old Man
I dont know the got, but you need to somehow at the end of your text file, save the line number, and character (or after what character) number
Open the file by Appending and writing to it. This will save your text always at the bottom of every session.
Code:Open "C:\session.txt" For Append As #1
Print #1, "your text"
Close #1
no, what he means is like save the position where the Ibeam is when they save it not Add to it