Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
DSA
22.5k+ articles
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
Project
870+ articles
C Programs
690+ articles
C Quiz
280+ articles
C-Functions
98 articles
cpp-file-handling
57 articles
File Handling
29 articles
C-File Handling
48 posts
Popular Articles
Recent Articles
C Program to Read Content of a File
Last Updated: 13 May 2025
In C, reading a file is a step-by-step process in which we first have to prepare the file only after which we can start reading. It involves
...read more
C Language
C-File Handling
C Programs
Bookshop management system using file handling
Last Updated: 08 June 2022
The task is to build the bookshop management system using file handling in C++ that helps to keep track of all the book records in a file. B
...read more
Project
Technical Scripter
C++
C-File Handling
File Handling
C++ Programs
Technical Scripter 2020
Error Handling During File Operations in C
Last Updated: 13 May 2025
File operations are a common task in C programming, but they can encounter various errors that need to be handled gracefully. Proper error h
...read more
cpp-file-handling
C Language
C++
C-File Handling
File Handling
C Programs
C++ Programs
C Error Handling Programs
Similar Topics
DSA
22.5k+ articles
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
Project
870+ articles
C Programs
690+ articles
C Quiz
280+ articles
C-Functions
98+ articles
cpp-file-handling
57+ articles
File Handling
29+ articles
Relational Database from CSV Files in C
Last Updated: 02 November 2023
In C programming, using arrays and string for data storage at run time which is volatile and gets memory in RAM. But to store data permanent
...read more
Articles
Advanced Data Structure
Project
C Language
C-File Handling
File Handling
C Programs
CSV
DSA
C fopen() Function
Last Updated: 10 January 2025
In C, the fopen() function is used to open a file in the specified mode. The function returns a file pointer (FILE *) which is used to perfo
...read more
C Language
C-Functions
C-File Handling
C Program to count the Number of Characters in a File
Last Updated: 29 May 2019
Counting the number of characters is important because almost all the text boxes that rely on user input have certain limitations on the num
...read more
C Language
C-File Handling
C fread() Function
Last Updated: 17 September 2024
The C fread() is a standard library function used to read the given amount of data from a file stream. Defined inside stdio.h, the fread() f
...read more
C Language
C-File Handling
File Handling
C Program to find size of a File
Last Updated: 28 April 2018
Given a text file, find its size in bytes.Examples:Input : file_name = "a.txt" Let "a.txt" contains "geeks"Output : 6 BytesThere ar
...read more
cpp-file-handling
C Language
C++
C-File Handling
C Programs
What is data type of FILE in C ?
Last Updated: 26 May 2022
Prerequisite : Basics of File Handling In C language, while file handling is done a word FILE is used. What is FILE? ExampleFILE *fp1, *fp2;
...read more
C Language
C-File Handling
fgets() in C
Last Updated: 23 April 2025
In C, fgets() is a built-in function defined in stdio.h header file. It reads the given number of characters of a line from the input stream
...read more
C Language
misc
C-File Handling
Basics of File Handling in C
Last Updated: 13 May 2025
File handling in C is the process in which we create, open, read, write, and close operations on a file. C language provides different funct
...read more
C Language
C-File Handling
Read/Write Structure From/to a File in C
Last Updated: 10 January 2025
For writing in the file, it is easy to write string or int to file using fprintf and putc, but you might have faced difficulty when writing
...read more
C Language
C-File Handling
fseek() in C/C++ with example
Last Updated: 06 June 2023
fseek() is used to move the file pointer associated with a given file to a specific position.Syntax of fseek()The fseek() syntax is:int fsee
...read more
CPP-Library
C Language
C++
C-File Handling
C-Library
fseek() vs rewind() in C
Last Updated: 07 January 2025
In C, the functions fseek() and rewind() helps in manipulating the position of the pointer in the opened file but serve different purposes a
...read more
GFacts
secure-coding
C Language
C-File Handling
EOF, getc() and feof() in C
Last Updated: 06 January 2025
In this article, we will discuss the EOF, getc() function and feof() function in C.What is EOF?In C,EOF is a constant macro defined in the s
...read more
C Language
C-File Handling
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !