Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ExportString "LineSeparators"-> "\n" ignored?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121409] Re: ExportString "LineSeparators"-> "\n" ignored?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Wed, 14 Sep 2011 05:14:07 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

On 9/13/11 at 7:19 AM, iamhuzhe at gmail.com (Zhe Hu) wrote:

>ExportString[{{1, 2}, {3, 4}}, "Table", "FieldSeparators" -> " ",
>"LineSeparators" -> "\n"] //FullForm

>"1 2\r\n3 4"

>why is it not:

>"1 2\n3 4"

Here I get "1 2\n3 4" as shown by

In[1]:= ExportString[{{1, 2}, {3, 4}}, "Table",
  "FieldSeparators" -> " ", "LineSeparators" -> "\n"] // FullForm

Out[1]//FullForm= "1 2\n3 4"

In[2]:= $Version

Out[2]= 8.0 for Mac OS X x86 (64-bit) (February 23, 2011)

I will guess you are using a Windows machine and this issue is platform specific.





  • Prev by Date: These Simple Four Lines of Mathematic Confound Me -- Bug?
  • Next by Date: Re: Inverse of function
  • Previous by thread: ExportString "LineSeparators"-> "\n" ignored?
  • Next by thread: Linear combination of Bessel functions