Re: Basic Question (of execv)




On 24 Oct 2002, 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


do it with
FILE *f;
f=fopen("path/to/your/file","w");
fclose(f);





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