method IFileSystem.readTextFile
IFileSystem.readTextFile(path: string): Promise<string>

Read a text file

Parameters

path: string
  • The file path

Return Type

Promise<string>

Promise resolving to file contents

Usage

import { type IFileSystem } from ".";