2007-11-30

Line Breaks in Mathematica

In Mathematica, running on Windows, I wanted to generate a text file using UNIX newline conventions.  Unfortunately, the Export / Text function does not provide an option governing line terminators -- you always get the convention of the host platform.  As a workaround, if you export using String format, then the file will use Mathematica's convention, which is UNIX-style.