File Handling Formats in C
In C programming, file handling allows you to work with files stored on the system. Here are some of the file handling formats available in C:
- Text Files: These files store data in a human-readable format. They contain characters and can be opened using text editors.
- Binary Files: Binary files store data in a format that is not human-readable. They contain a sequence of bytes and are used for storing data in a more compact and efficient manner.
- Sequential Access Files: In sequential access files, data is read or written sequentially from the beginning to the end of the file. This means you can only read or write data in the order it appears in the file.
- Random Access Files: Random access files allow you to read or write data at any position within the file. This provides more flexibility in accessing and manipulating data.