[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Re: LF vs CRLF in csv files

From: Andrew Makhorin
Subject: [Help-glpk] Re: LF vs CRLF in csv files
Date: Tue, 19 Feb 2008 01:38:10 +0300

> please, shouldn't opening the output file with mode "wb" solve the issue?

This is not a good idea, because csv is a text file. Probably a better
way would be converting csv file, say, with sed:

sed -e 's/$/\r/' infile > outfile

if that csv file has to be imported into an application which does not
permit use of LF instead CRLF.

I would like to note that RFC4180 is not a standard. Besides that
document concerns only some Internet protocols (which, in fact, require
CRLF on the protocol level, and not only for csv).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]