def write_text_file
import bend-prot@0.1.0.0/pdb.bend as Pdbimport Base
628def write_text_file(path: String, text: String) -> IO(Unit):
629 do IO<Unit>:
630 fh : File <- IO.try(File, File.open(path, "w"))
631 fr : File & Result<&1, &1, U32 & String, Unit> <- File.write(fh, text)
632 finish_write(fr)