Assuming the file is seekable (if it's not, you cannot do what you want) …Why wouldn't GrandFather's approach of close-ing and re-opening work even if the filehandle is non-seekable?
UPDATE: Thanks to JavaFan for a very polite answer to a very silly question.
In reply to Re^2: how to reset the input operater in while loop?
by JadeNB
in thread how to reset the input operater in while loop?
by lightoverhead
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |