Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java read file

try (Stream<String> stream = Files.lines(Paths.get(String.valueOf(new File("yourFile.txt"))))) {
	stream.forEach(System.out::println);
} catch (IOException e) {
	e.printStackTrace();
}
 
PREVIOUS NEXT
Tagged: #java #read #file
ADD COMMENT
Topic
Name
6+7 =