[Tutor] file read - rewind?

Alan Gauld alan.gauld at blueyonder.co.uk
Tue Jul 27 23:29:22 CEST 2004

> I want to read in a file, act on each line of the file, and then
start at
> the beginning again. I don't see a rewind function in the fileinput

Try seek(0) instead

Alan G.

More information about the Tutor mailing list