Teradyne interview question

How to open and read from a file?