How do you read/write a text file in Java?

How do you read/write a text file in Java?