1.

Solve : Python - Writing Text To File??

Answer»

How can I print something to a new FILE USING python?
I want to TAKE variables a, B, and C and print them to a text file.
Also, how to append if I want to add more?give this a look.

Python docs: http://docs.python.org/tutorial/inputoutput.html

Specifically, part 7.2

Here's another tutorial as well:
http://www.penzilla.net/tutorials/python/fileio/

A great free Python Learning Book for all ages despite its title.
http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/ Quote from: Squashman on January 19, 2012, 07:35:27 AM

A great free Python Learning Book for all ages despite its title.
http://www.briggs.net.nz/log/writing/snake-wrangling-for-kids/

The problem with the title being of course that the name "Python" for the language has nothing to do with the animal...


Discussion

No Comment Found