mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
FileUtil.getTotalLines()支持CR换行符
This commit is contained in:
1
hutool-core/src/test/resources/test_lines_cr.csv
Normal file
1
hutool-core/src/test/resources/test_lines_cr.csv
Normal file
@@ -0,0 +1 @@
|
||||
# 这是一行注释,读取时应忽略
|
||||
|
Can't render this file because it contains an unexpected character in line 1 and column 141.
|
7
hutool-core/src/test/resources/test_lines_crlf.csv
Normal file
7
hutool-core/src/test/resources/test_lines_crlf.csv
Normal file
@@ -0,0 +1,7 @@
|
||||
# 这是一行注释,读取时应忽略
|
||||
a,b,c,d
|
||||
1,2,3,4
|
||||
# 这是一行注释,读取时应忽略
|
||||
q,w,e,r,"我是一段
|
||||
带换行的内容"
|
||||
a,s,d,f
|
||||
|
Can't render this file because it has a wrong number of fields in line 2.
|
Reference in New Issue
Block a user