Re: write to a file using g_print



On Tue, Aug 21, 2012 at 11:42:53PM +0100, Rudra Banerjee wrote:
Is it possible to write to a file using g_print? 

g_print() is not an interface to print things to *a specific
destination*.  Quite the opposite.

It sends messages to the print handler.  Depending on the print handler
stup, it do anything with them (print to stdout, save to some file,
display somewhere, discard, ...).

Any solution?

Don't do that then.  Use g_fprintf().  Or, in most cases, just
fprintf().

Yeti




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