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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -