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
-
45:18
Stephen Gardner
2 hours ago🚨EXPOSED: Real reason Trump preparing for war - Tulsi Gabbard WARNS Trump!!
11.8K30 -
4:23:04
Right Side Broadcasting Network
8 hours agoLIVE REPLAY: President Trump Participates in a Press Conference With Prime Minister Netanyahu - 9/29/25
91.6K38 -
1:09:19
The White House
5 hours agoPresident Trump Participates in a Bilateral Meeting with the Prime Minister of the State of Israel
26.2K32 -
1:25:35
Russell Brand
4 hours agoMichigan Church Shooting Sparks Trump Warning Of ‘TARGETED ATTACK On Christians’ - SF641
170K45 -
1:59:24
The Charlie Kirk Show
4 hours agoRemembering Charlie's Martyrdom and Continuing His Revival | Driscoll, McPherson | 9.29.2025
189K53 -
1:34:24
Sean Unpaved
4 hours agoEuropeans Too Good, Lamar's Limp-Off, & the MLB's Playoff Party: Weekend Sports Review
39.7K4 -
1:15:02
Mark Kaye
5 hours ago🔴 TRUMP Furious Over Bad Bunny Super Bowl Halftime Show
42.6K4 -
46:58
MattMorseTV
5 hours ago $11.20 earned🔴COURT DATE for Kirk's ASSASSIN.🔴
66.9K31 -
2:11:40
Nerdrotic
5 hours ago $4.85 earnedOne Woke After Another | JK Rowling NUKES Emma Watson - Nerdrotic Nooner 520
64.8K8 -
2:06:35
Steven Crowder
7 hours agoTrump Hammers Portland: ANTIFA is a Terrorist Organization that Must be Crushed
525K394