FAQ
Hi!
On Mon, 19 Apr 1999 fquiquet at lemel.fr wrote:
I know how to write data in a new file :

f=open('file.name','w')
f.write('data')
f.close()

I don't know what is the function that permit to add data whithout erase
existing data.
f=open('file.name', 'a')
^ append
Other file modes are 'r+' and 'w+'. Read python documenataion on file
modes and open(). Remember to use 'b' when working with binary files
(mode = 'rb', for example.)
Thank's for your response to fquiquet at lemel.fr
Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedApr 19, '99 at 8:43a
activeApr 19, '99 at 1:03p
posts3
users3
websitepython.org

People

Translate

site design / logo © 2021 Grokbase