|
-
Sep 8th, 2000, 06:14 PM
#1
Thread Starter
Member
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
Using VB6 Professional Ediion
-
Sep 8th, 2000, 06:59 PM
#2
Frenzied Member
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
NXSupport - Your one-stop source for computer help
-
Sep 8th, 2000, 07:06 PM
#3
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
-
Sep 8th, 2000, 07:09 PM
#4
Frenzied Member
no, what he means is like save the position where the Ibeam is when they save it not Add to it
NXSupport - Your one-stop source for computer help
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
|