os.OpenFile()
1 | // Open opens the named file for reading. If successful, methods on |
os.Create()
1 | // Create creates or truncates the named file. If the file already exists, |
os.Open()
1 | // OpenFile is the generalized open call; most users will use Open |
flag
1 | // Flags to OpenFile wrapping those of the underlying system. Not all |
perm
1 | 一般都文件属性标识如下: |