Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: demo.cpp
- Revision:
- 25:015631f9e875
- Parent:
- 24:19c77967674e
- Child:
- 26:c6a803706a42
diff -r 19c77967674e -r 015631f9e875 demo.cpp
--- a/demo.cpp Tue Sep 27 11:10:20 2016 +0000
+++ b/demo.cpp Tue Sep 27 11:49:34 2016 +0000
@@ -27,7 +27,7 @@
puts(buf);
sprintf(buf, "\n\rFile count on disc = %i\n\r", file_Count("*.*"));
puts(buf);
- sprintf(buf, "\n\rFound %i files maching 1*.*\n", file_Dir("1*.*"));
+ sprintf(buf, "\n\rFound %i files maching 1*.*", file_Dir("1*.*"));
puts(buf);
file_FindFirst("*.TXT");
char filename[FILENAME_LENGTH];
@@ -42,6 +42,14 @@
len = file_FindNextRet(filename);
sprintf(buf, "\n\rNext filename = %s\n Length = %i", filename, len);
puts(buf);
+ file_FindNext();
+ file_FindNext();
+ file_FindNext();
+ if (file_Exists("3.TXT")) puts("\n\r3.TXT : EXISTS");
+ else puts("\n\r3.TXT : DOES NOT EXIST");
+ if (file_Exists("4.TXT")) puts("\n\r4.TXT : EXISTS");
+ else puts("\n\r4.TXT : DOES NOT EXIST");
+
}
//**************************************************************************
// Demo program that goes through media based functions