I'm pretty new to Ruby. I want to create a file by writing:
file.new "test.txt", "w"
And de result is:
NameError: undefined local variable or method 'file' for main:Object
from (irb):4
from c:/Ruby21/bin/irb:11:in '<main>'
I don't know what it means. And another question if I may: How do I say in what folder I want to save the file?