Open opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY. If there is an error, it will be of type *PathError.
(name string)
| 9 | // descriptor has mode O_RDONLY. |
| 10 | // If there is an error, it will be of type *PathError. |
| 11 | func Open(name string) (*os.File, error) { |
| 12 | return OpenFile(name, os.O_RDONLY, 0) |
| 13 | } |
| 14 | |
| 15 | // Create creates the named file with mode 0666 (before umask), truncating |
| 16 | // it if it already exists. If successful, methods on the returned |
searching dependent graphs…