Write entire file: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
No edit summary
Line 995: Line 995:


End Module
End Module
</syntaxhighlight>

=={{header|Vlang}}==
<syntaxhighlight lang="vlang">
import os

os.write_file('./hello_text.txt', 'Hello there!') or {println('Error: failed to write.') exit(1)}
</syntaxhighlight>
</syntaxhighlight>