int objectID=Integer.parseInt(fields);---this line is giving the error.
bon jith wrote:when i am reading a file and converting the string to integer it is giving me
java.lang.NumberFormatException:For input string:"" run time error
this is the code
Try outputing record and/or fields on each loop in after the split() command. You will then probably see a missing piece of data. You will have to do a check on fields to make sure it is not a blank string.
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
subject: Reading a file and getting run time error