开发者

CSV and MS-DOS CSV Formats

开发者 https://www.devze.com 2023-01-23 07:11 出处:网络
I have a custom java program which pr开发者_如何学运维oduces a Comma Separated Values (CSV) file. It uses the following output format:

I have a custom java program which pr开发者_如何学运维oduces a Comma Separated Values (CSV) file. It uses the following output format:

a,b,c

My users complain that my CSV file is not in the "MS-DOS CSV" format. They provided me with a file in the "MS-DOS CSV" format. I ran diff on my CSV file against their "MS-DOS CSV" file. The two files are identical.

What is the difference between the "MS-DOS CSV" format and the standard CSV format? Is there a tutorial somewhere about how to make the "MS-DOS CSV" format with java?


Check the row delimiter. MS-DOS uses {CR}{LF} or \r\n.

0

精彩评论

暂无评论...
验证码 换一张
取 消