Bagaimana cara memeriksa apakah file tetap ada tanpa membaca darinya java
Scanner scanner = new Scanner(new File("filename"));
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
// process the line
}
Old-fashioned Owl