Insert Content of a File into a Variable

Grant Edwards grante at visi.com
Fri Oct 27 03:46:43 CEST 2006


On 2006-10-27, Wijaya Edward <ewijaya at i2r.a-star.edu.sg> wrote:

> How can we slurp all content of a single file 
> into one variable?

http://docs.python.org/tut/node9.html#SECTION009200000000000000000

I suggest you read the rest of the tutorial as well.

-- 
Grant Edwards                   grante             Yow!  I want EARS! I
                                  at               want two ROUND BLACK
                               visi.com            EARS to make me feel warm
                                                   'n secure!!



More information about the Python-list mailing list