how can we make a certain file empty.first we read data from the file and then delete all the data from the file.now the file is empty.
can somebody help?
This is a discussion on emptying input file within the C Programming forums, part of the General Programming Boards category; how can we make a certain file empty.first we read data from the file and then delete all the data ...
how can we make a certain file empty.first we read data from the file and then delete all the data from the file.now the file is empty.
can somebody help?
>how can we make a certain file empty.
Open it for writing. Any contents will be removed and the file position will be set to the beginning.
-Prelude
My best code is written with the delete key.