After the first time through, you're at the end of FILE, so the while() is never entered (i.e., it gets EOF right off). Try using seek.
However, it will probably more efficient (if the file is rather small relative to available memory anyway) to load in the data and then iterate over it pre-parsed, than to re-parse the file and each line every time.
In reply to Re: Hash/file --> doesn't seem to work
by fullermd
in thread Hash/file --> doesn't seem to work
by imrags
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |