|
From: Alex E. <ale...@gm...> - 2010-09-13 20:58:45
|
Paul, Python has a lovely module for just this purpose. The documentation most relevant to your question is probably here [http://docs.python.org/library/csv.html#csv.writer]. Alex Edelman Carnegie Mellon University Physics, Class of 2012 ale...@gm... ao...@cm... On Mon, Sep 13, 2010 at 16:49, Paul D. Price <tv...@sb...> wrote: > Friends, > > This is likely more of a Python question, but what is the best way to export data as a CSV file. For example, if I want to print coordinate data to a file, say ball.pos.x, and ball.pos,y, what is the sequence I would go through to open the file, write to it, and then close it? > > Thanks, > Paul > _______________________ > Paul D. Price > Science Department Chairman > Trinity Valley School > Fort Worth, TX 76132 > tv...@sb... > > > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |