File operation modes

Introductions

When opening a file header, you will need to provide a mode. In lua a file mode determines what the file header can and can't do, or alters how it processes information!

Below is a cheat sheet of every mode and its property's. property's including the ability to read, write, process binary , if it truncates (overwrites) files, and if it creates a file at path if it doesn't exist

Attribute summery

Can read determines if attempting to read the file will fail
Can write determines if the header can publish new data into the file
Binary operation will allow the file to process non-letter data
Truncate determines if the file will be overwritten when written too
Create if it doesn't exist will create the file when its being opened if it doesn't already exist

Cheat Sheet!

Can Read? Can Write? Binary operation? Truncates? Create if does not exist?
r True False False False False
w False True False True False
a False False False False True
r+ True True False False False
w+ True True False True False
a+ True True False False True
rb True False True False False
wb False True True True True
ab False True True False True
rb+ True True True False False
wb+ True True True True True
ab+ True True False False True