From: Zhao Yi Date: 2009-01-13T16:09:39+09:00 Subject: How to create a file I use this code to write to a file: File.new(@FILE_NAME,"w"). If the file name doesn't exist, I will get "No such file" error. How can I create the file if it doesn't exist? thanks. -- Posted via http://www.ruby-forum.com/.