Well, the best thing you can do is to get a copy of the API docs (if you do not already have them) and check out the classes that have to do with streams and files. There are many of them, and they can be combined in various ways to read files into arrays of chars, etc.
Java tends to treat I/O as a stream, and you have so many different ways of doing it I won't even try to give any code example. As for parsing and storing the read-in file, there is the
String class (as well as others like StringBuffer that simplify some operations), and this type of thing has been done SO many times you shouldn't have much trouble finding loads of examples to help you understand it all. For that matter, you could probably just search this site and find all you need, but I'm new here so I have not had a chance to check out everything there is. That may not help as much as you would like, but a little research should give you plenty to get ideas from, and solving this by using the existing Java classes and trying different things will give you much-needed experience rather than just having someone give you ready-made code!