Skip to main content

write_file(path, content)

Signature: write_file(file_path: str, content: str, *args, **kwargs) -> None

Writes content to the given path. Raises ClypRuntimeError on I/O errors.

Example

function example() returns null {
write_file("out.txt", "Hello\n");
}