File.open initialization error

M

MAwiniarski

Greetings,

I want to create new file using:

f = File.new('filename', 'r+')

I've got following output:

file.rb:lineNo:in 'initialize'
file.rb:lineNo:in 'open'

Looks like File.new (before using open method) couldn't initialize.

Totally don't know what to do with it. I've got ruby installed
properly, and everything
works fine apart from File class 8-*

THX for help
 
S

Stefano Crocco

Greetings,

I want to create new file using:

f = File.new('filename', 'r+')

I've got following output:

file.rb:lineNo:in 'initialize'
file.rb:lineNo:in 'open'

Looks like File.new (before using open method) couldn't initialize.

Totally don't know what to do with it. I've got ruby installed
properly, and everything
works fine apart from File class 8-*

THX for help

Could you please post the whole error message?

Stefano
 

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
474,202
Messages
2,571,057
Members
47,664
Latest member
RoseannBow

Latest Threads

Top