Answers for "check file for text python if not continue"

1

how to check if the file has remaining without reading from it java

Scanner scanner = new Scanner(new File("filename"));
while (scanner.hasNextLine()) {
   String line = scanner.nextLine();
   // process the line
}
Posted by: Guest on May-06-2020

Code answers related to "check file for text python if not continue"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language