Hello, I'm learning
java from the Head First book.
I've been trying to make their QuizCardBuilder and QuizCardPlayer programs, but the QuizCardPlayer is throwing an exception when I try to load a card set:
c:\java>java QuizCardPlayer
make a card
couldn't read the card file
I think it has to do with how the other program, the QuizCardBuilder is saving files.
Here's the code for the saveFile method:
If I open up the saved file and just look at it in notepad, the new line doesn't appear to get added after the answer. Instead, I just see another /, similar to what is added after the Question. In fact, if I chance the /n to something else, it still adds a /, so I'm not sure what's going on with that. Does anyone have any idea what's going on here?
Thanks