init(absolutePath:contents:)

Creates a file with the specified path and contents.

RenderedSwiftRepresentation.swift:40
init(absolutePath: URL, contents: Data)

Parameters

absolutePath

An absolute path to the file.

contents

Data contents of the file, encoded as UTF-8.