Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.7K+ articles
DSA
20.2K+ articles
Java
9.3K+ articles
Misc
7.8K+ articles
C++ Programs
1.5K+ articles
C Language
1.3K+ articles
C Programs
466+ articles
C-Functions
90+ articles
cpp-file-handling
57+ articles
C-File Handling
43+ articles
File Handling
24 posts
Recent Articles
Popular Articles
Sorting strings from the text file
Last Updated: 08 April 2023
Given a text file "file.txt" that consists of strings, the task is to sort all the strings in alphabetical order in that text file.Approach: The idea is to use the concept...
read more
Strings
Sorting
C++ Programs
DSA
cpp-file-handling
C-File Handling
File Handling
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 permanently in a hard disk which can be ...
read more
Advanced Data Structure
Project
C Programs
Articles
C Language
DSA
CSV
C-File Handling
File Handling
How to work with file handling in C++
Last Updated: 15 July 2021
Prerequisite: File Handling through C++ ClassesIn C++, files are mainly dealt by using three classes fstream, ifstream, ofstream available in fstream header file. In this ...
read more
C++
Technical Scripter 2020
C-File Handling
File Handling
Project-Ideas
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 handling ensures that your progr...
read more
C Language
cpp-file-handling
C-File Handling
File Handling
C Error Handling Programs
Employee Record System in C using File Handling
Last Updated: 12 November 2021
Employee Record System is software built to handle the primary housekeeping functions of a company. ERS helps companies keep track of all the employees and their records. ...
read more
Project
Technical Scripter
Internship
C Programs
C Language
Technical Scripter 2020
C-File Handling
File Handling
Experiences
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. Below are the features to be imp...
read more
Project
Technical Scripter
C++ Programs
C++
Technical Scripter 2020
C-File Handling
File Handling
C program to read a range of bytes from file and print it to console
Last Updated: 28 June 2021
Given a file F, the task is to write C program to print any range of bytes from the given file and print it to a console.Functions Used:fopen(): Creation of a new file. Th...
read more
C Programs
C Language
C-File Handling
File Handling
C program to create hard link and soft link
Last Updated: 30 November 2021
There are two types of links, i.e., a soft link and a hard link to a file. C library has a function link() that creates a new hard link to an existing file. The function s...
read more
C Language
File Handling
How to create Binary File from the existing Text File?
Last Updated: 21 July 2021
In this article, we will discuss how to create a binary file from the given text file. Before proceeding to the steps, let's have an introduction of what are text files an...
read more
C++ Programs
C++
C-File Handling
File Handling
Bank account system in C using File handling
Last Updated: 26 November 2022
This article focuses on how to create a bank account system using C language and File handling in C.Approach:Let's discuss the approach in detail, covering all the functio...
read more
C Language
File Handling
How to write in a file using fputs() in C
Last Updated: 20 July 2022
fputs() is a function declared in stdio.h header file. It is used to write the contents of the file. The function takes 2 arguments. The first argument is a pointer to the...
read more
C Programs
C Language
File Handling
File I/O in Rust
Last Updated: 28 April 2025
File I/O in Rust enables us to read from and write to files on our computer. To write or read or write in a file, we need to import modules (like libraries in C++) that ho...
read more
Rust
File Handling
Rust modules
Rust Keywords
remove() in C
Last Updated: 09 January 2025
In C, remove() is a standard library function is used to delete a file from the file system. It provides a simple way to manage files in the storage from a C program.Examp...
read more
C Language
C-Functions
File Handling
ferror() in C
Last Updated: 03 February 2025
In C, ferror() is a built-in function used to check errors in files during file operations. It provides a simple way to do file operations without any interruption in your...
read more
C Language
C-Functions
File Handling
clearerr() in C
Last Updated: 03 February 2025
In C, file handling errors can be handled using ferror() and feof() functions. But these error flags persists until they are cleared. clearerr() is a built-in function use...
read more
C Language
C-Functions
File Handling
1
2
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 !