CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

fwrite

C Programming – Dealing with files – How to fetch a record from the file?

In our previous article, we have used “getrecord” function. We will start this article with this function. We have to implement “getrecord” to fetch a record from the “employee.dat” file. It will check the “employee.dat” file for an employee record based on the given employee number. If it finds the employee record it will return […]

C Programming – Dealing with files – How to read from a file?

C library provides a good number of file handling functions to deal with files and directories/folders. Generally, we can classify these functions as: Buffered functions and Un-buffered functions. Un-buffered functions are the raw functions that deal directly with storage devices. Whereas, buffered functions maintain memory buffers to improve the performance and reduce the number of […]

Scroll to top