write
Writes content to a file with proper UTF-8 encoding. This operation ensures:
Atomic writes (file is either fully written or not at all)
Proper text encoding (UTF-8)
Directory creation if needed
Overwrite of existing files
Parameters
path
Target file path
content
Text content to write
Throws
IOException
if write fails