From: ts Date: 2003-11-27T03:04:09+09:00 Subject: Re: Stupid Question #498 - How do I move a directory? >>>>> "A" == Allton, Paul 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