files: direct access - NOT sequential
Patrick Carabin
Patrick.Carabin at sciencesnaturelles.be
Tue Apr 15 10:14:27 EDT 2003
Terry,
""" open in 'w' mode or (probably better for Windows, 'wb') mode and
use tell() and seek() methods. """
Thank You.
i found tell() and seek() as properties/mrthods of the ( opened )
file object...
But i still have a problem : open in 'w' mode ( or 'wb' : what can
be the difference? ) does ERASE the contents of the file, so
everything is lost ...
1 more question :
how do i have to manage it to keep the contents that are already in
the file ? Do You have some example?
TIA
Patrick Carabin.
Institut Royal des Sciences Naturelles de Belgique
http://www.SciencesNaturelles.be/
Koninklijk Belgisch Instituut voor Natuurwetenschappen
http://www.NatuurWetenschappen.be/
«Plant in de tuin van je hart slechts de roos der liefde»
«Dans le jardin de ton coeur, ne plante que la rose d' amour»
Baha'u'llah.
More information about the Python-list
mailing list