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
The HotSeat
58 minutes agoPay Attention, This IS The ONLY Thing That Matters This Week!
433 watching -
LIVE
Jeff Ahern
45 minutes agoThursday Thrash with Jeff Ahern
118 watching -
1:08:45
Russell Brand
4 hours agoDeportation OUTRAGE Backfires—MS-13 Connections Revealed – SF568
134K93 -
59:57
Sean Unpaved
4 hours agoLee Corso's Final College Game Day, NCAA Rewrites Rules, Benches Clear In Pittsburgh!
38.6K1 -
1:17:46
Mark Kaye
3 hours ago🔴 TRUMP is FED Up! Calls For Jerome Powell to Be Fired!
14.7K7 -
1:01:03
Timcast
4 hours agoDemocrat Faces CRIMINAL CHARGE Over El Salvador STUNT, Logan Act VIOLATION Questioned
163K176 -
2:33:29
Survival Dispatch
1 day agoEXPOSED Why Americans Are Rejecting Legacy Media EP460
8.54K -
1:03:00
Steven Crowder
7 hours ago🔴TOUGH LOVE: Grok Got Sexual and Tried to Ruin My Marriage
312K380 -
56:49
The Rubin Report
5 hours agoRoom Sits In Stunned Silence After RFK Jr.’s Alarming Announcement on Growing Health Crisis
74.3K68 -
2:08:59
Benny Johnson
5 hours agoSHOCK Video Proves Katy Perry 'Space Flight' Was FAKE: 'Open Doors On A Space Ship?' Trump Reveals..
154K159