Closed jcaamano closed 3 years ago
Reviewed and corrected OpenFile flags:
OpenFile
os.O_TRUNC
os.O_CREATE
os.O_RDWR
os.O_RDONLY
Reviewed and corrected
OpenFile
flags:os.O_TRUNC
to prevent leftovers at the end of exisitng files when new data does not overflow existing data.os.O_CREATE
to create file if is does not exist as is the most reasonable thing to do other than exceptionsos.O_RDWR
toos.O_RDONLY
for files that are only read from.