1. Always open the file(using open() system call) before performing the file operations.(get file descriptor)
2. Once the file operation is done, The file should be closed, using close() system call.