Premium Only Content

How to Write Data in file using C program?By BitsBytes
We learn about file handling
How to Insert data in File from the program
---------------------------------------------------------------------
Why files are needed?
- When a program is terminated, the entire data is lost. Storing in a file will preserve your data even if the program terminates.
-If you have to enter a large number of data, it will take a lot of time to enter them all.
-However, if you have a file containing all the data, you can easily access the contents of the file using few commands in C.
- You can easily move your data from one computer to another without any changes.
-------------------------------------------------------------------------------------------------
Types of Files
When dealing with files, there are two types of files you should know about:
1. Text files
-Text files are the normal .txt files that you can easily create using Notepad or any simple text editors.
-When you open those files, you'll see all the contents within the file as plain text. You can easily edit or delete the contents.
-They take minimum effort to maintain, are easily readable, and provide least security and takes bigger storage space.
2. Binary files
-Binary files are mostly the .bin files in your computer.
-Instead of storing data in plain text, they store it in the binary form (0's and 1's).
-They can hold higher amount of data, are not readable easily and provides a better security than text files.
Thanks for Watching....
-Don't forgot about like,subscribe,share and comment
BitsBytes
Bits Bytes
-
LIVE
Rallied
2 hours ago $0.03 earnedShotty Boys Warzone Challenges
70 watching -
LIVE
Right Side Broadcasting Network
6 hours agoLIVE: President Trump Signs a Presidential Memorandum - 9/15/25
2,729 watching -
1:29:01
Sean Unpaved
3 hours agoTurf Tumbles & Triumphs: Burrow's Setback, Chiefs' Crumble, Irish Iced, & Kelly's 3-0
34.2K -
34:27
The Quiet Part
5 hours ago $0.21 earnedCanada DIDN'T EVEN TRY!
4.95K4 -
LIVE
SportsPicks
5 hours agoCrick's Corner: Episode 80
43 watching -
2:06:51
The Charlie Kirk Show
3 hours agoVice President JD Vance Remembers Charlie Kirk | Miller, Tucker, RFK Jr., Wiles, Leavitt | 9.15.25
1.39M1.21K -
LIVE
Major League Fishing
5 days agoLIVE! - Fishing Clash Team Series: Heritage Cup - Day 2
328 watching -
1:08:54
Simply Bitcoin
4 hours ago $0.82 earnedNEW REPORT SUGGESTS THE BITCOIN SUPPLY SHOCK IS ACCELERATING?! | EP 1332
21.2K1 -
10:31
Dr. Eric Berg
4 hours ago13 Foods You Should Never Buy Organic
79.2K20 -
15:10
SB Mowing
1 month agoShe had TEARS OF JOY on her face - An update on Beth
60.6K35