answersLogoWhite

0

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.

User Avatar

Wiki User

8y ago

What else can I help you with?

Related Questions

How do you open C when it prompts you to choose the program to open it with with in a list?

edit your autorun.inf file, add the line open=C:\windows\explorer.exe good luck Kevin


Why program consists more than one object file in c?

why does a program consists of more than one object file in c++


Write a C program to extract a given word from a file?

program to extract a given word from a file


What are source code in programming?

You write a computer program with words and symbols that are understandable to human beings. This is the edit part of the development cycle. You type the program directly into a window on the screen and save the resulting text as a separate file. This is often referred to as the source file (you can read it with the TYPE command in DOS or the cat command in unix). The custom is that the text of a C program is stored in a f ile with the extension .c for C programming language


A program in c to copy text file?

File Operations in C are accomplished by the use of pointers.Pointers are use to point to a particular memory location.File are read and written by using file pointers.The Keyword FILE is used to declare a file pointer.The Complete Program for writing text to a file and saving it and copying it to a new location is given at http://c-madeeasy.blogspot.com/2011/07/program-in-c-to-write-data-to-file-and.html


You want a file handling c program?

yes


How do you load a program in turbo c?

File/Open


Where is the PC name stored on the C drive?

The windows registry. Technically in the file system.dat though you cannot directly edit this file


What are the file created after c file is save?

Having saved the source file (*.C), you can compile it into an object module (*.OBJ), then link an executable program (*.EXE)


What is multi file program in c?

The source code for the program is in many files verse being all in one file, I should think.


What is the default path for the folder where the active directory log file will be stored?

program file in c:\ drive


What is hader file in c?

The file which are represent at the top of any program or any presentaion is called hader