Data
public extension Data
-
Creates a data with the content of the file at the given path.
Declaration
Swift
@inlinable init(contentsOf path: Path) throwsParameters
pathThe location of file .
-
Writes this data to file on path.
Declaration
Parameters
pathThe location to which to write this data.
appendAppends the data to the end of file.
useAuxiliaryFileIf
true, the string is written to a backup location, and then the backup location is renamed to the name specified by path; otherwise, the data is written directly to path.Return Value
The path to allow chaining.
View on GitHub
Data Extension Reference