231226 JAVA Exception03
2023. 12. 26. 19:34ㆍ2023.11.21-2024.05.31
package com.sukgi.exception;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class Exception03 {
public static void fileOpen() throws IOException {
FileReader fr = null;
fr = new FileReader("temp.txt");
fr.close();
}
public static void main(String[] args) {
try {
fileOpen();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
'2023.11.21-2024.05.31' 카테고리의 다른 글
231226 JAVA DBConnection (0) | 2023.12.26 |
---|---|
231226 JAVA DB01 (0) | 2023.12.26 |
231226 JAVA Exception02 (0) | 2023.12.26 |
231226 JAVA Exception01 (1) | 2023.12.26 |
231226 JAVA Study (0) | 2023.12.26 |