Re: Restore
- Posted by Michael Bolin <michaeltom at GEOCITIES.COM> Aug 28, 1997
- 560 views
> 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