Search Google for 'java file read'. Wanna write to a file? Search for 'java file write'. Ain't Google awesome?
If you haven't already done so, I suggest you search www.amazon.com for a beginner book on Java that has good reviews. Its much more efficient to read a book on Java than spend countless hours trying to learn it through code examples found on the internet.