init(baseName:contents:)

Creates a file with the specified name and contents.

RenderedSwiftRepresentation.swift:59
init(baseName: String, contents: Data)

Parameters

baseName

A base name representing the desired name.

contents

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