create and write File

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

 



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

thanks
R!SC


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux