This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
In the future, please UseCodeTags, so that your code will be readable.
The error message is telling you exactly what's wrong, and exactly where. At line 98 of SaveBean.java you're trying to access an index beyond the last index of the String in question. As rob suggested, you're probably assuming there are more characters present than there actually are.
Add println() statements at each step so you can see what each piece is, and also, before all that, print out the length of the line.
Joined: Nov 18, 2011
Thanks for the quick response..Now this site becomes my homepage
subject: RE: reading Text file with the field positions