The IO chapter in Thinking in Java does a pretty nice job of organizing all the confusing classes in Java io. See if that helps, and if not post something more specific as Bear suggested. The ranch really works best when you share code that almost works.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi