You are reading file1 all the way thru and then seeking around in it and structure to describe seek positions I assume is gonna be pretty big. Anyway if the data you need from file 1 fits into memory (the stuff that file 2 wants to know), this approach is faster because you don't have to do all the seeking around which is a fairly slow operation. Just an idea.
In reply to Re^5: seeking help for seek function
by Marshall
in thread seeking help for seek function
by pearly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |