![]() ![]() After the write operation the file position indicator is moved to point at the next structure. After reading the structure the pointer is moved to point at the next structure.Ī write operation will write to the currently pointed-to structure. A file position indicator points to record 0 when the file is opened.Ī read operation reads the structure where the file position indicator is pointing to. You can change the contents of a structure anywhere in the file.Īfter you have opened the binary file, you can read and write a structure or seek a specific position in the file.You can instantly use any structure in the file.Binary files have two features that distinguish them from text files: Binary filesīinary files are very similar to arrays of structures, except the structures are in a disk-file rather than an array in memory. ![]() In this C programming tutorial we are going to talk about the use of binary files. In an earlier tutorial we talked about file I/O functions and the use of text files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |