fputs
Rhodri James
rhodri at wildebst.demon.co.uk
Tue Jun 5 12:20:24 EDT 2012
On Tue, 05 Jun 2012 14:54:54 +0100, hassan <halnator at gardeniatelco.com>
wrote:
> what is the equivalent to the php fputs in python
The write() method of the file object. Though if you're
asking the question like that, you need to read this:
http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files
...and stop trying to think in terms of PHP. While you
can write PHP in any language (I know people who still
write FORTRAN, whatever language they might be using),
you'll find that getting into the right mindset for
whatever language you are using works a lot better.
--
Rhodri James *-* Wildebeest Herder to the Masses
More information about the Python-list
mailing list