M
Mmcolli00 Mom
Hi. I have a program that is supposed to get a filename at the command
prompt. It reads in the input ok but doesn't initialize to the file. I
have more code that takes the file and parses it but I did not paste
that below.
Question: Is there a step that I am missing in f = File.new(myinput)?
Thanks MC
inputFile = print("Enter Filename: ")
$stdout.flush
input = gets
myinput = input.to_s
f = File.new(myinput) <-- in 'initialize': Invalid argument - filename
(Errno::EINAL) from crb.rb in 'new'
prompt. It reads in the input ok but doesn't initialize to the file. I
have more code that takes the file and parses it but I did not paste
that below.
Question: Is there a step that I am missing in f = File.new(myinput)?
Thanks MC
inputFile = print("Enter Filename: ")
$stdout.flush
input = gets
myinput = input.to_s
f = File.new(myinput) <-- in 'initialize': Invalid argument - filename
(Errno::EINAL) from crb.rb in 'new'