User Tools

Site Tools


cs_lang:python:things-to-know:files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cs_lang:python:things-to-know:files [2010/12/12 19:19] cedriccs_lang:python:things-to-know:files [2010/12/12 19:20] cedric
Line 45: Line 45:
 <code python> <code python>
 >>> with open("./dico.txt", "r") as f: >>> with open("./dico.txt", "r") as f:
-...   = f.read()+...   text = f.read()
 >>> >>>
->>> len(a)+>>> len(text)
 2664170 2664170
->>> print(a)+>>> print(text)
 . .
 . .
cs_lang/python/things-to-know/files.txt · Last modified: 2010/12/12 19:21 by cedric