Please write the general formats for file opening and file closing commands?

Submitted by: Muhammad
For Opening:-

☛ fp=fopen(“filename” , “mode”);
☛ where ‘fp' refers to the file pointer.
☛ ‘filename' refers to the name of the file to be opened.
☛ ‘mode' refers to the mode of accessing data.

For Closing:-
☛ fclose(fp); where fp denotes the file pointer.
Submitted by: Muhammad

Read Online Science Teacher Job Interview Questions And Answers