answersLogoWhite

0


Best Answer

You insert data into a file by copying the file to a temporary file up to the point of insertion, then copying the data to be inserted, then copying the balance of the original file. After closing the temporary file you delete the original file and rename the temporary file back to the original file's name.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Put i the disc and go to my computer find lacal disc C: and double click to open

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

It's either open or fopen, see the help/manual.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

read, fread, fgets...

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

What do you mean by file-import?

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

learn programming for free on YouTube

Mas-codetech

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can insert a data into file in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you store data in c?

Write your data to a data file.


How do you insert data in a Excel file?

There are lots of ways. Data can be typed in directly. Data can be copied and pasted from other files and applications. Data can be imported from other file formats, like text files.


What is the datatype of FILE in C?

FILE is a data-type (a struct, to be precise).


What is a statement use to open data file in c?

FILE* file; file = fopen("some-file.dat");


What is advantage of using file in c?

Storing data, mainly.


How can data recovery software enable businesses to recover and access historical data?

Data recovery software enables a company to recover and access historical data only if the data was backed up. Simply insert the backup file and look for the file that you need to recover.


How do you stores images in an array using java?

File file=new File("c:\\Time.jpg"); PreparedStatement ps=connection.prepareStatement("insert into Table1 (image_id, image_data)...


What is fwrite function in c language?

writes data to a FILE* stream.


What is file structures in C plus plus?

As far as C++ is concerned files do not have structures, they are simply raw data streams. It's entirely down to the programmer to determine what structures exist within the file and to interpret the data accordingly. C++ cannot do it for you.


How does one read data from a text file and create an adjacency matrix with the data in matlab?

You can read data from a text file in a few different ways, but generally you use the "textread" function. The syntax is: C = textread('file','format') where C will be your new text matrix, file is your text file within your matlab directory, and format will depend on the type of data it is (see related link for more). Can't help with the adjacency matrix, sorry.


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.


Which word menu item could be used to insert an Excel spreadsheet in Word?

The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.The File option on the Insert menu or the Object option on the Insert menu can both be used to do it.