You're developing a program that needs to frequently update specific records in a large binary file. Which file handling functions would be most useful to efficiently locate and update records?

  • fseek() and fwrite()
  • fread() and ftell()
  • fprintf() and fscanf()
  • fgetc() and fputc()
To efficiently locate and update records in a binary file, you would use fseek() to move to the desired position and fwrite() to write the updated data. The other options are not suitable for this specific task.
Add your answer
Loading...

Leave a comment

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