RE: Creating and Opening Files | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

RE: Creating and Opening Files

Effectively, can anyone answer this question? Fill in the blanks to open a file and write content to it in a code block. File.open("file.txt", "w") |x| .puts("some content") }

23rd Nov 2016, 12:25 AM
Miles Griffith
Miles Griffith - avatar
1 Answer
+ 2
The answer is { then x
23rd Nov 2016, 12:32 AM
Miles Griffith
Miles Griffith - avatar