In Java 8, you can use Files.lines to read file as Stream . c://lines.txt – A simple text file for testing. line1 line2 line3 line4 ...
確定! 回上一頁