用于管道分隔文件的可接受的文件扩展名是什么?
我正在解析一个数据文件,其字段由管道分隔。记录由换行符分隔。这类似于 CSV 文件甚至 TSV 文件 (http://www.cs .tut.fi/~jkorpela/TSV.html),但我想知道管道分隔数据可接受的文件扩展名是什么?
我没有看到 http://en.wikipedia.org/wiki/Delimiter-separated_values 中特别提到的一个 而且我在我引用的 5 个左右的 StackOverflow 问题中没有发现任何提及。
WP 文章向我建议,通过从逗号“扩展”到 CSV 和制表符到 TSV,扩展名应该是 PSV。但并不是每个人都称管道为管道。
也许有一个流行的软件包使用管道分隔数据并对其进行扩展,从而设定了事实上的标准?
I am parsing a file of data whose fields are separated by pipes. The records are separated by newlines. This is similar to a CSV file or even a TSV file (http://www.cs.tut.fi/~jkorpela/TSV.html), but I wonder what the accepted file extension for pipe delimited data is?
I do not see one specifically mentioned in http://en.wikipedia.org/wiki/Delimiter-separated_values and I have not found mention of one in the 5 or so StackOverflow questions I referenced.
The WP article suggests to me that, by way of "extension" from comma to CSV and tab to TSV, the extension should be PSV. Not everyone calls a pipe a pipe though.
Maybe there is a popular software package that uses pipe delimited data and has an extension for it, thereby setting the de facto standard?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有同样的问题,因为我想遵循标准如果有的话。考虑到
.csv
和.tsv
的命名系统,这里明显的选择是.psv
- 但是,我找不到在任何地方使用它。我能找到的与管道分隔文件相关的最常见的扩展名就是
.txt
。 census.gov 和大多数其他政府实体的导出使用.txt
作为竖线分隔的文件。I had this same question because I wanted to follow the standard if there was any. The obvious choice here is
.psv
considering the naming system of.csv
and.tsv
- however, I couldn't find this in use anywhere.The most common extension that I could find associated with a pipe-delimited file is simply
.txt
. Exports from census.gov and most other government entities use.txt
for pipe-delimited files.