We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lib.rs
1 parent 6ebe113 commit 714d3ebCopy full SHA for 714d3eb
src/lib.rs
@@ -43,6 +43,19 @@
43
//! }
44
//! ```
45
//!
46
+//! For writing files:
47
+//!
48
+//! ```rust
49
+//! let my_other_file = root_dir.open_file_in_dir("MY_DATA.CSV", embedded_sdmmc::Mode::ReadWriteCreateOrAppend)?;
50
+//! my_other_file.write(b"Timestamp,Signal,Value\n")?;
51
+//! my_other_file.write(b"2025-01-01T00:00:00Z,TEMP,25.0\n")?;
52
+//! my_other_file.write(b"2025-01-01T00:00:01Z,TEMP,25.1\n")?;
53
+//! my_other_file.write(b"2025-01-01T00:00:02Z,TEMP,25.2\n")?;
54
55
+//! // Don't forget to flush the file so that the directory entry is updated
56
+//! my_other_file.flush()?;
57
+//! ```
58
59
//! ## Features
60
61
//! * `log`: Enabled by default. Generates log messages using the `log` crate.
0 commit comments