Re: Basic Question (of execv)
- From: who_ami siedziba pl
- To: gtk-app-devel-list gnome org
- Subject: Re: Basic Question (of execv)
- Date: Fri, 25 Oct 2002 01:28:04 +0200 (CEST)
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]