MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / write

Method write

euralios_std/src/fs.rs:76–78  ·  view source on GitHub ↗

Sets the option for write access. This option, when true, will indicate that the file should be `write`-able if opened. If the file already exists, any write calls on it will overwrite its contents, without truncating it. # Examples ```no_run use std::fs::OpenOptions; let file = OpenOptions::new().write(true).open("foo.txt"); ```

(&mut self, write: bool)

Source from the content-addressed store, hash-verified

74 /// let file = OpenOptions::new().write(true).open("foo.txt");
75 /// ```
76 pub fn write(&mut self, write: bool) -> &mut OpenOptions {
77 self.write = write; self
78 }
79
80 /// Sets the option for the append mode.
81 ///

Callers 2

create_dirFunction · 0.45
saveMethod · 0.45

Calls 2

rcallFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected