>>>>> "A" == Allton, Paul <Paul.Allton@DrKW.com> writes:
A> f = File.open(file)
A> f.readlines.each do | line |
A> #do stuff
A> end
A> f.close
A> File.rename(olddir, newdir)
IO::foreach(file) do |line|
# ...
end
The file is automatically closed at the end of the block
Guy Decoux