Click here to Skip to main content
15,908,111 members

Comments by Yuxi Long (Top 8 by date)

Yuxi Long 19-Jun-18 21:26pm View    
Thanks to Mohibur Rashid, the problem has been solved. Thank you for your effort as well!
Yuxi Long 19-Jun-18 21:25pm View    
I've run these lines and it printed out the first line of the file, no error message! I've added "throws IOException" to all the methods involved. Thank you, sir!
Yuxi Long 19-Jun-18 20:53pm View    
Here's what I got:

C:\Users\longyuxi>dir C:\Users\longyuxi\Documents\ICPResult.txt
Volume in drive C is OS
Volume Serial Number is 9E72-6765

Directory of C:\Users\longyuxi\Documents

06/17/2018 05:00 PM 61,372 ICPResult.txt
1 File(s) 61,372 bytes
0 Dir(s) 8,098,463,744 bytes free
Yuxi Long 19-Jun-18 19:40pm View    
I've updated my question. I've also copied the file into different locations, as well as temporarily disabling my antivirus software, just to be sure that no other program is blocking the file.
Yuxi Long 19-Jun-18 10:26am View    
Hi,

Thank you so much for your response. I'm using an IDE and I've pulled out what I believe are the error messages:

Error:(30, 33) java: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
Error:(31, 22) java: unreported exception java.io.IOException; must be caught or declared to be thrown
Error:(32, 23) java: unreported exception java.io.IOException; must be caught or declared to be thrown