[Tutor] counter
kirk Bailey
idiot1@netzero.net
Fri, 08 Feb 2002 14:37:59 -0500
OK, something simple. I want to write a counter for a webpage.
This means reading a file, adding one to the contents, displaying the
result, and writing that new number to the file and saving it.
Opening and closing and reading and wrigting files I grok. But I
understand python is rather odd about numbers, reading a text
expression of a number and saving same. This all seems to involve the
pickle module, but maybe not?
OK, for a minimal concversion to/from text from/to a number, what is
the method without pickle, and with?
--
end
Respectfully,
Kirk D Bailey
+---------------------"Thou Art Free." -Eris----------------------+
| http://www.howlermonkey.net mailto:highprimate@howlermonkey.net |
| http://www.tinylist.org +--------+ mailto:grumpy@tinylist.org |
+------------------Thinking| NORMAL |Thinking---------------------+
+--------+
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97