A.T.Hofkamp wrote:
write the output to a temporary file while reading the input, then rename the temporary file.
This I believe is what the fileinput module does when you use it with the inplace parameter set to 1.
-- ~noufal http://nibrahim.net.in/ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor