try {
fileStream = new FileInputStream(fileName);
boolean questionnaireNumExists = readLines(fileStream, questionnaireNum);
if (!questionnaireNumExists) {
dataLine += sQuestionnaireNum;
dataLine += ",";
}
else System.out.println("The questionnaire number you have entered already exists," +
" re-enter a number");
}
catch (Exception e) {
System.err.println(e.toString());
}
The compiler skips the try{} and goes directly to the catch{} ... any ideas what might be wrong?