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

22nd Nov 2016, 10:30 PM
Miles Griffith
Miles Griffith - avatar
5 Réponses
+ 1
Its File open w
23rd Nov 2016, 12:24 AM
Miles Griffith
Miles Griffith - avatar
+ 1
f = File.open("db.csv", "w")
1st Dec 2016, 12:43 AM
Thiago Santos
Thiago Santos - avatar
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.
22nd Nov 2016, 10:36 PM
Andreas K
Andreas K - avatar
0
"db.csv", "r" ?
9th Jan 2017, 12:14 AM
John Maleckar
0
Ans: f = File .open ("db.csv", "w ")
21st May 2017, 2:53 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar