Skip to content

Tag Archives: C-File Handling

In this article, we will learn how to operate over files using a C program. A single C file can read, write, move, and create… Read More
To understand how to write a C program for reading and printing zip files, it’s important to know what exactly a zip file is. At… Read More
Pre-requisites: File Handling in C++ So far the operations using the C program are done on a prompt/terminal that is not stored anywhere. But in… Read More
C programming language supports four pre-defined functions to read contents from a file, defined in stdio.h header file: fgetc()– This function is used to read… Read More
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… Read More
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… Read More
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… Read More
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… Read More
In this article, the task is to implement an ATM with functions like add, delete, search, and update users using file handling in C++.  … Read More
It is quite common that errors may occur while reading data from a file in C++ or writing data to a file. For example, an… Read More
Prerequisite: File Handling through C++ Classes In C++, files are mainly dealt by using three classes fstream, ifstream, ofstream available in fstream header file. In… Read More
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. Recommended:… Read More
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… Read More
Pre-requisite: File Handling in C  Given the source and destination text files, the task is to append the content from source file to destination file… Read More
Write a C program which inputs a file as a command-line arguments and detects whether the file is JPEG(Joint Photographic Experts Group) or not. Approach:… Read More