File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ let mut root_dir = volume0.open_root_dir()?;
27
27
// Open a file called "MY_FILE.TXT" in the root directory
28
28
// This mutably borrows the directory.
29
29
let mut my_file = root_dir . open_file_in_dir (" MY_FILE.TXT" , embedded_sdmmc :: Mode :: ReadOnly )? ;
30
- // Print the contents of the file
30
+ // Print the contents of the file, assuming it's in ISO-8859-1 encoding
31
31
while ! my_file . is_eof () {
32
32
let mut buffer = [0u8 ; 32 ];
33
33
let num_read = my_file . read (& mut buffer )? ;
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ fn main() -> Result<(), Error> {
120
120
// Open a file called "MY_FILE.TXT" in the root directory
121
121
// This mutably borrows the directory.
122
122
let mut my_file = root_dir. open_file_in_dir ( "MY_FILE.TXT" , embedded_sdmmc:: Mode :: ReadOnly ) ?;
123
- // Print the contents of the file
123
+ // Print the contents of the file, assuming it's in ISO-8859-1 encoding
124
124
while !my_file. is_eof ( ) {
125
125
let mut buffer = [ 0u8 ; 32 ] ;
126
126
let num_read = my_file. read ( & mut buffer) ?;
You can’t perform that action at this time.
0 commit comments