Announcement

Collapse
No announcement yet.

set EOF

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • set EOF

    Hi everyone,

    I'm new to PB and probably this is a rookie question but
    I couldn't find any answer: How can I set the EOF?

    I have a file with some data (OPEN "myfile.bin" FOR RANDOM...),
    and I want to delete a record from the middle of file. The solution
    is to shift 1 position forward all the data located after that
    position. At the very end of that file, I'll obtain the same record,
    for the 2 last to positions so I want to end that file, after the first
    duplicate record.

    Anyone could help? (Hope that I was clear enough...)

    Thanks for your time
    Alex

    ------------------

  • #2
    I've found the answer:

    SETEOF [#]filenum


    Anyway, thanks alot

    Have a good day!
    Alex

    ------------------

    Comment

    Working...
    X