Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Writing numeric data to CSV does not write final EOL

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131412] Writing numeric data to CSV does not write final EOL
  • From: kogan.clark at gmail.com
  • Date: Sun, 21 Jul 2013 04:22:37 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

Hi!

I am using Mathematica 8 to write a numeric matrix to a csv file using the commands:

mytable = {{1, 2}, {3, 4}};
mytable = Export["C:/tmpfile.csv", mytable, "csv"];


This produces a file, but does not put a final line end character after the 4. I am trying to read this file with R, which requires the final line end character. I was wondering if anyone knew the simplest (or a very simple) way to add the additional line end character.

Thanks!

Clark



  • Prev by Date: Re: CRC32 Hash Missmatch
  • Next by Date: Re: Mathematica Kernel Stops Functioning
  • Previous by thread: Re: keep special functions unexpanded
  • Next by thread: Re: Writing numeric data to CSV does not write final EOL