Berkas tidak ditemukan
file = open(r"C:\Users\SUN\Desktop\oops in python.txt")
for i in file:
print(i)
file.close()
Gleaming Gerbil
file = open(r"C:\Users\SUN\Desktop\oops in python.txt")
for i in file:
print(i)
file.close()
// 用户删除了该文件:
String t = readFile("C:\\abc.txt"); // FileNotFoundException!