From: ts Date: 2001-06-05T00:13:18+09:00 Subject: [ruby-talk:16206] Re: Newbie: Copying files >>>>> "R" == Robert Thornton writes: R> require 'ftools' R> IO.foreach("dswFileList.txt") {|line| File.copy("line", "..\line") } Write it like this require 'ftools' IO.foreach("dswFileList.txt") do |line| line.chomp! # remove the \n at the end of line File.copy(line, "..") end Guy Decoux