Re: Restore

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Euphoria apparently has no command corresponding to 'restore' in BASIC.
> Without it, I have to open a file inside a subroutine, say 'get', 'get',
> 'get', ... in a loop until I find what I am looking for in the file, then
> close the file.  Next time I enter the subroutine, I open the file again and
> start over.
>
> This seems inefficient.  I'd rather open the file once outside the
> subroutine, leave it open, and start at the beginning of the file whenever I
> enter the subroutine.  But without the pseudo-'restore' command, the next
> time around I begin looking in the file where I left off before.

Read up on the seek() command in the manual.

Michael Bolin

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu