From: john.slobbe@... Date: 2008-12-12T22:14:07+09:00 Subject: Re: want to create a file with variable name Try: f = File.open("#{a}.txt",'a') Regards, John. On 12/12/2008, Srikanth Jeeva wrote: > hi i want to create a file name, with that variable name.. > > for example.. > > a=10 > > f=File.open('a.txt','a') > created file name is a.txt > but > i want the file as 10.txt > > can any one help?? > -- > Posted via http://www.ruby-forum.com/. > >