Unfortunately, that debugging message (or lack of it) is your code. There is just not enough information provided for us. I would suggest that you modify that error message to provide a stack trace (Just create an exception, and call the print stack method).
Furthermore, I would also suggest that you don't make any assumptions. Load the code with debugging messages. Don't assume that the code broke at a certain location -- be certain of it.
Joined: Nov 06, 2005
I think I've managed to fix the previous error, 'digit expected', but I still get a problem when I save the new text file after adding a new title. The output after adding a new title is as follows,
Borrower Count = 2 Max Borrowers = 20 Code Number = 278342 Film = ,Forrest Lead Actor = Gump,Tom Supporting Actor = Hanks,Gary Director = Sinise,Robert Code Number = 273654 Film = Lost in Translation Lead Actor = Bill Murray Supporting Actor = Scarlett Johansson Director = Sofia Coppola Zemeckis
and the text file is saved as follows,
20 2 278342,,Forrest,Gump,Tom,Hanks,Gary,Sinise,Robert 273654,Lost in Translation,Bill Murray,Scarlett Johansson,Sofia Coppola
As shown in the above output, each time I add a new title to the list, the main class rewrites the previous titles, adding a comma after each word.
I really don't understand why this is happening.
Any help or advice would be gratefully appreciated!!
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: Problem when reading a CSVs file as separate words - any help!!