Q. Which of these functions is used to read a file into an array?
β
Correct Answer: (A)
file()
Explanation: file() reads the entire file into an array, with each line as an element.