CSV和MS-DOS CSV格式 [英] CSV and MS-DOS CSV Formats

查看:1637
本文介绍了CSV和MS-DOS CSV格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义的java程序,它产生一个逗号分隔值(CSV)文件。它使用以下输出格式:

I have a custom java program which produces a Comma Separated Values (CSV) file. It uses the following output format:


a,b,c

a,b,c

我的用户抱怨我的CSV文件不是MS-DOS CSV格式。他们为我提供了一个MS-DOS CSV格式的文件。我对我的CSV文件对他们的MS-DOS CSV文件运行diff。这两个文件是相同的。

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.

MS-DOS CSV格式和标准CSV格式有什么区别?是否有关于如何使用java制作MS-DOS CSV格式的教程?

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?

推荐答案

检查行分隔符。 MS-DOS使用{CR} {LF}或\r\\\

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

这篇关于CSV和MS-DOS CSV格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆