LinkedIn interview question

Implement a program to read a file.