Atos interview question

How would you read a text file in java?