From: name pipe Date: 2006-11-01T22:50:49+09:00 Subject: File I/O Hello, I have some text to be written to a file. After receiving data from webrick server I modify it lil bit and then write it to a file. fd = File.open("file.txt", "w") fd.puts "#{data}" The code doesnt give error and runs successfully however file.txt doesnt contain any data. Just puts "#{data}" gives a give output on console. Means its not empty. Can anyone tell me why does it happen ?