plinth/node/fs

Functions

pub fn read_file_sync(path: String) -> Result(String, String)

Returns the contents of the path as a string.

pub fn write_file_sync(
  path path: String,
  content content: String,
) -> Result(Nil, String)

Write a string to a file.

Search Document