im programming in c under linux , and i want to open a new EMPTY file , im using the "open" system call . this is my code:
but this open me the old file (if there is such one) ... and i want to open a new empty one..Code:
fd=open(filename, O_WRONLY | O_CREAT);
how can i do this ?