func OpenFile(name string, flag int, perm FileMode) (*File, error)
f, err := os.OpenFile("notes.txt", os.O_RDWR|os.O_CREATE|O_TRUNC, 0755)
Does "O_TRUNC" empty the entire file before writing? What do they mean with "truncates"?
Also, does the function ioutil.WriteFile()
empty the entire file before writing?