0
RE: Creating and Opening Files
Correspondingly, can anyone answer this inquiry? Fill in the blanks to open a file named "db.csv" for write-only access. f = . ("db.csv", " ") w open init db r File
5 odpowiedzi
+ 1
Its File open w
+ 1
f = File.open("db.csv", "w")
0
I'm not sure, because i recently started learning ruby but it seems like the second parameter in the brackets should be "w" if there is another space please mark them.
0
"db.csv", "r" ?
0
Ans:
f = File .open ("db.csv", "w ")