sure. instead of using "rewind", merely close the file, then reopen it exactly as you did the first time.
either way you start at the beginning of the file. rewind is just a nicer way to do it.
PS: dont be afraid to try new functions. especially if they're part of standard ANSI C libraries. rewind is part of the <stdio.h> library.
it's not some sort of secret 33rd level Grand Poobah Royal Order of Ancient Waterbuffalo thing.
Last edited by jephthah; May 3rd, 2008 at 1:12 am.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
Offline 2,567 posts
since Feb 2008