[Solved] How to write ”Listed Records” in a text file? [closed]


To keep records in a file, you write them to the file:

fwrite(&variable, 1, sizeof(record), file_pointer);

To read a record from a file:

fread(&variable, 1, sizeof(record), file_pointer);

To position to record Y in the file:

  fseek(file_pointer, (Y * sizeof(record)), SEEK_SET);

If this is not helpful, please clarify “keep in a file”, or state why it is not helpful.

solved How to write ”Listed Records” in a text file? [closed]