write to a file using g_print



Is it possible to write to a file using g_print? 
I was trying something like:

  FILE *fop = g_open("bib2.bib","w");
  g_print ("%s%s",strcombo,strkey, fop);

but its not working.
Even fprintf is giving warning and not writing.
mkbib.c:114:15: warning: initialization makes pointer from integer
without a cast [enabled by default]
mkbib.c:115:3: warning: passing argument 1 of âfprintfâ from
incompatible pointer type [enabled by default]

Any solution?





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