Required Instance Methodtuist.filesystem 0.7.9FileSystem

readTextFile(at:)

Reads the file at a given path, decodes its content using UTF-8 encoding, and returns the content as a String.

FileSystem.swift:136
func readTextFile(at: AbsolutePath) async throws -> String

Parameters

at

Path to the file to read.

Returns

The content of the file.