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
- Follow-Ups:
- Re: Writing numeric data to CSV does not write final EOL
- From: Sseziwa Mukasa <mukasa@gmail.com>
- Re: Writing numeric data to CSV does not write final EOL