Teradyne Interview Question

How to open and read from a file?