Pick up any java textbook and look up file input streams. I am just learning this bit myself, and it is a little to detailed to post here. You'll need to have an understanding of how to handle exceptions as you can't put in a file input stream without catching certain types of exceptions such as file not found or disk errors.