Vidyalelo
Ruby Programming · Q8

File Input Output in Ruby

Programming · Ruby Programming · question 8

Q8

Which method in Ruby is used to check if the end of a file has been reached?

A.
end_of_file()
B.
at_end()
C.
eof()
Answer
D.
file_end()

Answer: Option C

Solution

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