Re: Restore

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

> 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.

Use the "seek()" function. If you want to 'resume' the last positon
you accesed in the file, you can store 'where()' in a variable and
then 'seek()' to it.

Regards,
  Daniel Berstein
  danielberstein at usa.net
  http://www.geocities.com/SiliconValley/Heights/9316

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

Search



Quick Links

User menu

Not signed in.

Misc Menu