On Mon, 2006-04-03 at 12:16 -0400, André Pedralho wrote:
> Hi all,
> I'm trying to port an app with some file interactions. I used to use
> only the stdio.h to open, read, write and close my text file, but now,
> I want to do this using the gnome VFS.
> Then, I've re-developed all the code, and I may open, read, write and
> close the file using the gnome VFS. However, when I close my app and
> run it again my file is erased by the gnome_vfs_open_uri(&handle, uri,
> GNOME_VFS_OPEN_WRITE), I mean, all the content of my file is erased.
> Following there is a piece of my code:
Pass in GNOME_VFS_OPEN_WRITE|GNOME_VFS_OPEN_RANDOM to gnome_vfs_open_uri
and the file won't be truncated.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
[EMAIL PROTECTED] [EMAIL PROTECTED]
He's a genetically engineered flyboy cat burglar on the wrong side of the law.
She's a sharp-shooting thirtysomething Hell's Angel with an incredible
destiny. They fight crime!
_______________________________________________
gnome-vfs-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list