Jitender
Posts: 1
Nickname: jiten
Registered: Jan, 2004
|
|
Re: BufferedReader driving me nuts!!
|
Posted: Jan 27, 2004 11:11 PM
|
|
sir, u have 2 issues: 1) u are intermixing the input of file name with the actual reading of the file' So. u must use FileReader instead of InputStreamReader 2) Also, as u were then new to Java, hence didn'e know that a class of errors(beyond ur control) are to be definitely catched as the JVM is built up like that and these type of errors are predefined and either must be caught or thrown(u can bluff up here and throw in thin air, i.e. just throw just like an empty catch block, to be caught nowhere , provided no error u feel of that sort can occur). So, coming back u must catch these errors. Yours Jiten
|
|