Answers for "how to read line as one string in java"

1

java read next line

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 "how to read line as one string in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language