answersLogoWhite

0

When you open a file in write mode, eg.

fp=fopen("filename.txt","w");

the content of the file is deleted.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How you can delete the data in the file by opening it in the C programming in read or write mode?

To delete all the existing data in a file, simply open it in write mode. If you open the file in append mode, you need to overwrite the existing data to delete part or all of that data.


How do you read and write data to serial and sequential file using basic programming language?

you do


How can you read and write to files in C programming language?

We can read and write to files with the help of file commands in c programming.There are so many commands related to file for read,write,append,delete etc.


How do you delete a file from Data Exchange with us bank?

Go on to delete


How do you delete a file from data exchange us bank?

Navigate to the file and click the Delete File link


Why should business students learn programming skills?

Because programming is the part of the business. It maintains the financial statement of the business, it helps to delete, edit, to create new file or to update data for the business.


What is mean by file handling in C programming?

There is a quite a lot of things you can do with files; some of them are: open, read, write, close, delete, copy, move, rename, concatenate, sort...


What is meant by read and write txt in file handling?

read: moving data from file to memory write: moving data from memory to file


How do you store data in c?

Write your data to a data file.


How can we delete 0 byte file?

In most data processing, when deleting a file, it is only the file name that is deleted. This then leaves the space previously occupied by the file to be re-used. This is an inherent property of a 'file allocation table'. Importantly, to actually remove the data, one must re-write new arbitrary data over the file space many times. Seven overwrites is usually adequate.


How Do you delete a file on My Pokemon Ranch?

You go on the wii menu and select settings. then save data. then u delete it from there.


How do you edit a existing file in c program?

Open the file for reading and load the content into memory where it can freely edited. To prevent external changes to the file, keep the file open but lock it to prevent access. When the user saves the modified data, write that data to a temporary file then close it. Then close the original file, delete it and rename the temporary file with the original file name. For added safety during file edits, you should also maintain a recovery file that keeps track of all the changes. Once the temporary is renamed, you can delete the recovery file.