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:
1
(A), (C), (D), (B)
2
(D), (B), (C), (A)
3
(C), (D), (B), (A)
4
(B), (D), (A), (C)