Instance Methodswift-nio 2.81.0_NIOFileSystem->Swift
write(toFileAt:absoluteOffset:options:)
Writes the UTF8 encoded String
to a file.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
@discardableResult func write(toFileAt path: FilePath, absoluteOffset offset: Int64 = 0, options: OpenOptions.Write = .newFile(replaceExisting: false)) async throws -> Int64
Parameters
Returns
The number of bytes written to the file.