Results 1 to 4 of 4

Thread: File Position

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Posts
    42

    Angry

    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

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  3. #3
    Guest
    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

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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
  •  



Click Here to Expand Forum to Full Width