[BangPypers] Help-subversion_python

Sridhar Ratnakumar sridhar.ratna at gmail.com
Tue Jul 21 06:53:06 CEST 2009


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, <dinoj.d at 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 at python.org
> http://mail.python.org/mailman/listinfo/bangpypers


More information about the BangPypers mailing list