Question

Differentiate between Random access and Sequential access of files in C. Discuss the syntax and role of fseek( ) and rewind( ) function, while accessing any file. 

27 Apr 2023
Answer :
Word Count : 591

In computer science, accessing files is an essential operation that allows us to store and retrieve data from a computer's storage system. There are two ways to access files in C - random access and sequential access. In this answer, we will differentiate between the two types of file access and discuss the role and syntax of fseek() and rewind() functions.

Random Access:
Random access refers to the capability to access any record or data element in a file directly, without the need to read through all preceding records. It means that we can access the contents of a file in any order. Random access files are suitable for applications that require frequent access to specific data elements or when we need to modify the contents of a file.

____ _______ ___ _____ _______ ________ ____ ____ _____ _______ ________ ______.
___ _________ _____ _______ __________ __________ ________ ___ ___.
__________ __________ ______ ____ _________ ______ ____ ____.
_________ ____ _______ __________ _____ ___ __________ _____ ________ ____ _____.
__________ ________ ________ _______ _______ _________ _________ ____ ___ ___ _____.
_____ _____ _______ ______ ________ ______ _________.
_________ ________ _________ ______ _________ ___ ______.
__________ _______ ______ ___ _________ _____ _____.
_____ __________ _____ _______ __________ ________ _______ _______ ________ ____.
_____ _____ _____ _________ ____ _______ __________ ________ __________ _____.
_____ ______ _____ _____ ______ _______ _____ _____ _________ ___ _________ ___.
____ ____ __________ ______ _________ _____ _______ ___ ______ _________ __________ __________.
_________ _______ ___ ____ _____ ___ _____.
____ ________ _______ _________ _____ ________ __________ ______ ____ ________ ___ ___.
______ _____ __________ _________ _____ _____ ______.
____ _____ ______ _____ _____ ____ ________ ______ _____.
______ ___ _____ ________ ____ _________ _____ _______ ___ _________ _________ _________.
___ ______ _____ __________ ___ ________ __________ __________ ___ ______ _______ _____.
_________ _________ __________ _______ _____ ___ _____ ____ ___ ____ _________ __________.
________ ______ ____ __________ __________ ________ ________ _____ _____.
___ _________ _________ _________ _________ __________ ________ ________.
___ ____ ___ ________ ________ _______ _____ _______.
__________ ________ ________ _______ _______ _________ ___.
___ ____ ___ _____ _________ ___.
________ ______ ___ _____ _____ ________ _________ ____ ______.
__________ _________ ________ ___ __________ ____ ______ ________ ________.
__________ _____ _____ ___ ____ __________ _____ ____ ____ _________ ____.
______ ____ ________ ______ ___ ____ _______ ________.
______ ___ ________ __________ __________ ________ __________ _______ _____ ____.
________ _______ _________ ____ ________.
___ ____ _______ __________ ________ _____ _________ ________ ____ ___ ________.
____ ______ _______ ________ ________ ____ ______ _______ ________ ____ ___ ___.
____ ___ ________ ____ _________ ______ __________.
______ _____ ___ _________ ______ _________ _________ ________ _____ ____.
_________ __________ _________ ________ _______ ________ ____ ________ ____ ___ ______.
_______ _________ ______ _____ _________ ______.
_______ ________ ___ ___ __________ ______ _________ ____ _________ ________.
_________ _____ ____ _______ __________ _________ ___ __________ ________ ________ _______.
_____ ________ ______ _________ _____.
__________ ______ ___ _________ _______ ___ ___ _______ __________ _________ ____.
_________ _______ _____ _______ _____ ____ ___ ___ ____.
_________ _______ _____ ____ ___ _________ ______ ______ __________ ______.
__________ ____ _______ ___ _________ __________ ___ ___.
___ ___ ____ _____ ______ ______.
_____ ___ _________ ______ _____ __________ __________ ___ _________ ______ _______ ____.
______ ________ __________ __________ _________ _____.
____ _____ __________ __________ ___ __________.
________ ____ ___ _______ ___ _____.
__________ ________ ___ _________ ________ __________ ____ ____ ____.
__________ ___ _____ __________ __________ _____ _______ ________ _______ ____ __________ ______.
_____ ________ _______ ____ __________ ____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 201 2023 - Differentiate between Random access and Sequential access of files in | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→