File.write: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/io/file.bend as File Lines 125-129 of ezx@1.11.0.0/src/io/file.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/io/file.bend&start_line=125&end_line=129 import Base # a file replaced with this text; False when it could not be written def write(path: String, text: String) -> IO(Bool): do IO: r : Result<&1, &1, U32 & String, File> <- File.open(path, "w") write.opened(r, text) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File.open https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/io/file.bend&name=write.opened