Opening a file in ruby -
i tried opening file in ruby following code got unknown error message.
no such file or directory - -p
code:
myfile=file.open("/home/cucumber/profiles/data.csv","r")
please advice correct method do.
ensure whether file exists in designated location or not, either check manually or use in code:
file.exists?("/home/cucumber/profiles/data.csv")
Comments
Post a Comment