Replies: 1 comment
-
可以手动补一行"" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
测试代码:
String srcFile = "D:\\test.txt"; List<String> list = FileUtil.readLines(srcFile,"UTF-8"); list .add("test");FileUtil.writeLines(list,srcFile,"UTF-8"); FileUtil.writeLines(list,srcFile,"UTF-8");
在linux下使用
wc -l test.txt 最后一行无法统计。
Beta Was this translation helpful? Give feedback.
All reactions