write
Writes content to a file, creating it if necessary. This operation is atomic and ensures:
Parent directories are created if missing
Existing files are overwritten
Proper file permissions are set
Parameters
path
Destination path for the file
content
String content to write (encoded as UTF-8)
Throws
IOException
if write operation fails