__fs.gdn::write_file
Write content
to file path
.
If path
already exists, its content is replaced with content
.
import "__fs.gdn" as fs
fs::write_file("hello world", Path{ p: "/tmp/foo.txt" })
Source Codepublic fun write_file(content: String, path: Path): Result<Unit, String> {
__BUILTIN_IMPLEMENTATION
}