Match the flag definitions

Report a typo

Match each of the os.OpenFile() flags with the correct definition.

Match the items from left and right columns
os.O_CREATE
os.O_RDWR
os.O_WRONLY
os.O_APPEND
os.O_RDONLY
Opens the file in the read-and-write mode
Opens the file in the read-only mode
Opens the file in the write-only mode
Creates a new file if it doesn't exist
Adds data to the end of the file
___

Create a free account to access the full topic