Re: Basic Question (of execv)



You should probably use something like this (which is portable):

GError *error;
GIOChannel *file;
file = g_io_channel_new_file("filename", "w", &error);
g_io_channel_close(file);

        Janus


On Fri, 2002-10-25 at 01:17, Pablo Fischer wrote:
Hi;

It maybe sound stupid.. but I dont know how to 'create a file', for
example, after clicking the button, a file needs to be created (I know
how to create the signal_function).

I would like to create the file with: touch, I have something like:

void Agenda_crear(GtkWidget *objeto, gpointer data) {

  g_print("Creando la agenda");
  execlp("touch /home/unmada/test.pfs",NULL);
}

But no new file its created!

Thanks.

Paul Fischer


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Attachment: signature.asc
Description: This is a digitally signed message part



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