Skip to content

Commit

Permalink
Fixed and improved fileex on SDK examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 29, 2024
1 parent 0cbbca7 commit 8bc7dfc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/sdk/fileex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

void create_file();
void read_file();
void delete_file();

i32 main() {
create_file();
read_file();

FS::remove(F("/test.txt"));
return 0;
}

Expand Down Expand Up @@ -54,4 +54,8 @@ void read_file() {

IO::print(contents);
IO::print(F("\r\n"));
}

void delete_file() {
FS::remove(F("/test.txt"));
}

0 comments on commit 8bc7dfc

Please sign in to comment.