WriteFile writes data to the named file, creating it if necessary. If the file does not exist, WriteFile creates it with permissions perm (before umask); otherwise WriteFile truncates it before writing, without changing permissions. Since Writefile requires multiple system calls to complete, a failu
(name string, data []byte, perm os.FileMode)
| 95 | // |
| 96 | // This mimics the internal os.WriteFile function and has the same docs. |
| 97 | WriteFile(name string, data []byte, perm os.FileMode) error |
| 98 | } |
no outgoing calls