Ruby - File IO
Which of the following is the correct syntax to open a file named
data.txt for reading using a block in Ruby?data.txt for reading using a block in Ruby?do...end with a block parameter like |file|.{ |file| ... }. Others have syntax errors or missing block parameters.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions