want to create a file with variable name

S

Srikanth Jeeva

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??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,208
Latest member
RandallLay

Latest Threads

Top