What is the primary use of the fseek function in file handling?

  • Closing a file
  • Moving the cursor to the end of a file
  • Moving the file cursor to a specific position
  • Setting the file's permissions
The primary use of the fseek() function is to move the file cursor to a specific position within the file. This allows you to read or write data at a specific location in the file.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *