I have to make in my C program a new file called tempfile.txt inside a temp folder.
Now I am in home directory.
Temp folder is under home directory.
How can I create the file and write inside it a phrase like "demo" and after close it???
I have tried execl ("/bin/", "pico", "temp", (char *)0); but don't work of course... I can't find an editor to use inside bin...
I don't know what to do... It's my first time use C in Linux...
Please help me ASAP.