Deleted function getFileHandle(file_name, permissions)

Since open(file_name, permissions) is atomic enough, I have changed the call to
getFileHandle(file_name, permissions) to open(file_name, permissions)