Re: Is it possible to create a single csv file one row at
- To: mathgroup at smc.vnet.net
- Subject: [mg103572] Re: [mg103532] Is it possible to create a single csv file one row at
- From: Ariel Sepulveda <sepulveda.cuevas at gmail.com>
- Date: Tue, 29 Sep 2009 07:35:30 -0400 (EDT)
- References: <200909271130.HAA04960@smc.vnet.net>
>From my perspective the easiest way is to use PutAppend and then ReadList.
PutAppend[{1,2,3},"d:\\myfile.txt"];
PutAppend[{4,5,6},"d:\\myfile.txt"];
ReadList["d:\\myfile.txt"]
Ariel
On Sun, Sep 27, 2009 at 7:30 AM, Phineas Q. Butterfats <
phineas.q.butterfats at gmail.com> wrote:
> Hi!
>
> I'm running an algorithm that outputs a list of numbers each time it
> runs. I need to collect this data so I can analyze it in Mathematica,
> but I have to run my algorithm about 14 million times. So far I've
> been creating tables with 100,000 rows (one for each run of the
> algorithm) and then exporting them to csv files. My question is: can
> I create a csv file one row at a time? Is there a way to use Export
> (or something else) so that the file isn't overwritten each time I run
> my algorithm, but instead builds a single csv file row by row? It's
> less taxing on my system if I can create the csv file "on the fly," as
> opposed to creating such big tables first, and then exporting them.
> Of course, I could just have 14 million csv files, each with one row,
> but I'd prefer to group them 100,000 at a time to begin with.
>
> Any help is greatly appreciated, thank you so much!
>
>
- References:
- Is it possible to create a single csv file one row at a time using
- From: "Phineas Q. Butterfats" <phineas.q.butterfats@gmail.com>
- Is it possible to create a single csv file one row at a time using