Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

File("/path/to/some/file")
One-time write. 
Notice that it will overwrite the previous content of the file.
File("/path/to/some/file").writeText("string to write to file")
File("/path/to/some/file").writer

The BufferedWriter is prefered most of the time.

File("/path/to/some/file").bufferedWriter