Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Last updated: Aug 7, 2022

File Handling

File handling refers to the method of storing data in the C program in the form of an output or input that might have been generated while running a C program in a data file, i.e., a binary file or a text file for future analysis and reference in that very program. File handling in C enables us to create, update, read, and delete the files stored on the local file system through our C program.
fprintf() and fscanf() in C EASY
Explore fprintf() and fscanf() functions in C: write and read formatted data to/from files efficiently. This guide covers syntax, usage, and examples for each function.
C fputc() and fgetc() EASY
In this article, we will learn about two C library functions fputc() and fgetc(), and what parameters they take as input.
Random Access File in C EASY
In this article we will discuss about random access files in C, like types of access files, functions used for random access, creating & writing data to random access files, using rewind() & fseek() functions, finding specific records, & different file modes for reading & writing files.
C fseek() function EASY
In this blog, we will learn about the fseek() function which is a standard inbuilt function of the C programming language. We will know about its construction working as well.
Rewind() Function in C EASY
This blog describes the rewind() function of the C programming language; how it can help developers to develop software and its applications.
C ftell() function EASY
This article discusses the ftell() function in the C programming language and how one can use the ftell() function in their file handling programs to tell the position of the file pointer.
fseek() vs rewind() in C
This article incorporates a detailed discussion on the main differences between fseek() vs rewind() in C language and also where to apply them in code.
fgets() and gets() in C EASY
In this article, we will learn about fgets() and gets() function and their parameters in C
fread() Function in C EASY
The fread() function in C reads data from a file into a buffer. It takes a pointer, element size, count, and file stream as arguments.
fwrite() Function in C EASY
In this article, we will explore the fwrite function in C programming language and how it works, including its syntax, parameters, and return value.