Re: Writing numeric data to CSV does not write final EOL
- To: mathgroup at smc.vnet.net
 - Subject: [mg131436] Re: Writing numeric data to CSV does not write final EOL
 - From: Sseziwa Mukasa <mukasa at gmail.com>
 - Date: Tue, 23 Jul 2013 04:44:22 -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
 - References: <20130721082237.45F9E6A09@smc.vnet.net>
 
You can append an empty row:
Export["C:/tmpfile.csv", Append[mytable,{}], "csv"];
On Jul 21, 2013, at 4:22 AM, kogan.clark at gmail.com wrote:
> 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
>
- References:
- Writing numeric data to CSV does not write final EOL
- From: kogan.clark@gmail.com
 
 
 - Writing numeric data to CSV does not write final EOL