Nobuyoshi Nakada wrote: > Use "rb" and "wb" mode for binary files, or better, use FileUtils.cp. Thank you very much and they work well. Li -- Posted via http://www.ruby-forum.com/.