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
Total Horse Channel
20 hours agoAMHA World Show 2025 9/21
623 watching -
1:29:02
Game On!
1 day ago $7.12 earnedTHEY'RE BACK! NFL Wise Guys Return For Week 3 BEST BETS!
54.2K4 -
6:16
China Uncensored
5 hours agoHow Trump Plans on Stopping Russia and China—Without Firing a Shot!
178K40 -
33:13
Ohio State Football and Recruiting at Buckeye Huddle
17 hours agoOhio State Football: 10 Things We Learned Watching Washington's Win over Colorado State
94.6K -
1:14:04
NAG Entertainment
18 hours agoKickback w/ Leon - Rocket League: Road to GC
59.7K -
30:13
Degenerate Plays
5 hours ago $0.73 earnedBritish Insults Are Hilarious - Call of Duty: Modern Warfare 2 (2009) : Part 2
35.4K2 -
6:42
NAG Daily
22 hours agoCharlie Kirk: His Words. His Vision. His Movement.
55.1K27 -
21:42
Jasmin Laine
23 hours ago“Kimmel Isn’t a Victim, Charlie Kirk Was”—Gutfeld OBLITERATES Liberal Media Over FAKE Outrage
50.3K34 -
33:59
ComedyDynamics
23 days agoBest of Jim Breuer: Let's Clear the Air
92.2K20 -
2:11:03
Badlands Media
1 day agoDevolution Power Hour Ep. 391: First Principles, Psyops, and Hybrid Warfare
144K186