From: Alex Sweps Date: 2011-12-31T10:31:52+09:00 Subject: Re: output file from variable Hello Peter Thank you very much for the reply but for your solution to work i would need the file name of the original file being read. I am inputing my file via ARGV[0] so i cannot specify the original filename. Seeing as the variable x contains the entire file is there a way i can output x into a new file and name the file with a variable? I simply want a way to rename the input file :( Other than this hickup i am enjoying Ruby quite a lot and have managed to make it do everything i want so far. Thank you :) -- Posted via http://www.ruby-forum.com/.