Write a UTF-8 string to a file, creating it or overwriting any existing content.
Intermediate directories are not created automatically; use mkdir first if needed.
mkdir
Path to the file. ~ is expanded.
~
String to write.
Optional
Whether to write the file in-place or atomically. Defaults to atomically (false).
true on success, false on failure.
true
false
Write a UTF-8 string to a file, creating it or overwriting any existing content.
Intermediate directories are not created automatically; use
mkdirfirst if needed.