> Hi*, > > i want create one file but if exist i want delete its > contain > > with > > f=filp_open(path,O_CREAT | O_WRONLY,0644); > > create the file but if exist when i write into > overwrite it but not delete its contain Is this what you are looking for: f = filp_open(path, O_CREAT | O_WRONLY | O_TRUNC, 0644); -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/