Reads a file under the workspace folder and returns its contents as a string. Errors if the path does not exist or names a folder.

Parameters

string
required
The file path, relative to the workspace folder.

Returns

string
The file contents.

Example

Errors