I suggest you employ Java's File and Scanner class. They are pretty easy to use for beginners.