openFile(forReadingAndWritingAt:options:)
Opens the file at path
for reading and writing and returns a handle to it.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func openFile(forReadingAndWritingAt path: FilePath, options: OpenOptions.Write) async throws -> ReadWriteFileHandle
Parameters
If path
is a relative path then it is opened relative to the handle.