pub fn save_buffer(path: impl AsRef<Path>, buffer: &TextBuffer) -> Result<()>
Write a TextBuffer to a UTF-8 file.
TextBuffer
This writes the entire buffer to disk in one go.