✏️ Explanatory Question

How do you search data in a data file using random access method?

👁 2,243 Views
📘 Detailed Answer
💡

Answer with Explanation

Use the fseek() function to perform random access input/ouput on a file. After the file was opened by the fopen() function, the fseek would require three parameters to work: a file pointer to the file, the number of bytes to search, and the point of origin in the file.