Opening and Closing Files - fopen() and fclose()
close()closesafiledescriptor,sothatitnolongerreferstoanyfileandmaybereused.Anyrecordlocks(seefcntl(2))heldonthefileitwasassociated ...,Inthefollowingexample,close()isusedtocloseafiledescriptorafteranunsuccessfulattemptismadetoassociatethatfiledes...。參考影片的文章的如下: