Vidyalelo
Ruby Programming · Q3

File Input Output in Ruby

Programming · Ruby Programming · question 3

Q3

Which method in Ruby is used to read a line from a file?

A.
read
B.
readline
Answer
C.
getline
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board