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

MathGroup Archive 2013

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

Search the Archive

Re: Writing numeric data to CSV does not write final EOL

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131675] Re: Writing numeric data to CSV does not write final EOL
  • From: Sseziwa Mukasa <mukasa at gmail.com>
  • Date: Thu, 19 Sep 2013 01:22:04 -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> <kslfm0$pnu$1@smc.vnet.net> <20130918013433.0A84E6A2F@smc.vnet.net>

You're right, this will make a temporary copy of the list.  Alternatively, export the table:

Export["C:/tmpfile.csv",mytable];

then:

fileStream=OpenAppend["C:/tmpfile.csv"];
WriteString[fileStream,"\n"]
Close[fileStream];

Regards,
Sseziwa

On Sep 17, 2013, at 9:34 PM, Alan <alan.isaac at gmail.com> wrote:

> On Tuesday, July 23, 2013 4:42:40 AM UTC-4, Sseziwa Mukasa wrote:
>> Export["C:/tmpfile.csv", Append[mytable,{}], "csv"];
>
>
> If ``mytable`` is huge, won't this require the temporary creation of another huge list?
>
> Alan Isaac
>




  • Prev by Date: NDSolve and memory usage
  • Next by Date: apply rule to Partition
  • Previous by thread: Re: Writing numeric data to CSV does not write final EOL
  • Next by thread: Re: Writing numeric data to CSV does not write final EOL