This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You need to see what the read() method does, and work out why you get 51 when you expect 3. There are other methods in those classes, eg readLine() which are probably more suitable. There is no need to use two BufferedReaders in the same method to read from the same source. Make sure you use a finally block to close the Reader, otherwise you may end up with "resource leaks."
You may find it much easier if you use the Scanner class.
Joined: Oct 17, 2009
Joined: Oct 13, 2005
I presume you have got it worked out then . . . well done
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com