Re: how to read a file into a GString



Peter Jay Salzman <p dirac org> writes: 
> the code would be much nicer if i could read the file data directly
> into a GString rather than into a gchar and convert the gchar to a
> GString.
> 
> is there a way to read a file directly into a GString?

Look at the source to g_file_get_contents() in GLib 1.3.12

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]