The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
8:00a04e5cd407
Parent:
4:5d1359a283bc
Child:
9:cf0d45ce28a6
--- a/LocalFileSystem.h	Fri Jan 23 16:26:21 2009 +0000
+++ b/LocalFileSystem.h	Tue Feb 03 18:02:02 2009 +0000
@@ -25,6 +25,14 @@
  * >     FILE *fp = fopen("/local/out.txt", "w");  // Open "out.txt" on the local file system for writing
  * >     fprintf(fp, "Hello World!");              
  * >     fclose(fp);                               
+ * >     remove("/local/out.txt");                 // Removes the file "out.txt" from the local file system
+ * >
+ * >     DIR *d = opendir("/local");               // Opens the root directory of the local file system
+ * >     struct dirent *p;
+ * >     while((p = readdir(d)) != NULL) {         // Print the names of the files in the local file system
+ * >       printf("%s\n", p->d_name);              // to stdout.
+ * >     }
+ * >     closedir(d);
  * > }
  *
  * Implementation Notes:
@@ -44,7 +52,7 @@
 	
     virtual FileHandle *open(const char* name, int flags);
     virtual int remove(const char *filename);
-
+    virtual DirHandle *opendir(const char *name);
 };
 
 } // namespace mbed