2

`

@Test
public void readFile() throws IOException {
     String fileName = "F:/sdata企业名.txt";
     //读取文件
     Stream<String> stringStream = Files
                .lines(Paths.get(fileName), Charset.defaultCharset());
     stringStream.limit(10000).forEach(line -> {
            System.out.println(line.replace("  ", ""));
     });
}

`


求平安
15 声望0 粉丝

家人平平安安。