Arrange the following steps of file handling in C in the correct order :
(A) Close the file
(B) Read from or write to the file
(C) Open the file
(D) Check for error
Choose the correct answer from the options given below :
Correct file handling sequence in C:
Open file
Check for error
Read / Write
Close file
Thus order:
(C) → (D) → (B) → (A)
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.