Apart from the simplest of applications, most programs have to read or write files.
It may be just for reading a config file, or a text parser or something more sophisticated.
This tutorial focuses on using random access files in C.
The basic file operations are The two fundamental file types are text and binary.
The first four operations listed above are for both text and random access files. Random access means you can move to any part of a file and read or write data from it without having to read through the entire file.
Years ago, data was stored on large reels of computer tape.
Instead of storing data in plain text, they store it in the binary form (0's and 1's).
They can hold higher amount of data, are not readable easily and provides a better security than text files.
A file is simply a machine decipherable storage media where programs and data are stored for machine usage.
Of these two, binary files are usually the simpler to deal with.
For that reason and the fact that random access on a text file isn't something you need to do often, this tutorial is limited to binary files.
We will work on reading a simple column (name) from an Access Database table (Employees) and stick those names into a listbox for selection.
While there are many ways to do these things, I simply create 3 different ways that you can play with below.