Its a good idea..is there any option to have append mode with the below codes
> Not rocket science: > > 1) read the entire contents of the file into memory and write it back > (after writing your "hello world") > 2) move the file (if it is on disk) to some other location; write > "hello > world" and append the moved file back to this new file. > > -srid > > On Mon, 20 Jul 2009 21:58:58 -0700, <dino...@raffles.co.in> wrote: > >> Hi >> I am using the following code to write some contents to a file >> >> stream = fs.apply_text(txt_root, path, None) >> core.svn_stream_write(stream, "hello world!\n") >> core.svn_stream_close(stream) >> >> This will overwrite the existing file contents. Please help me for this >> to >> write contents in the beginning line of the file without losing the >> contents or in append mode. >> >> Thanks in advance >> DD >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers@python.org >> http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers