
LocalFileSystem Hello World
Legacy Warning
This is an mbed 2 example. To learn more about mbed OS 5, visit the docs.
main.cpp
- Committer:
- mbed_official
- Date:
- 2013-02-13
- Revision:
- 0:cc465aef98cf
File content as of revision 0:cc465aef98cf:
#include "mbed.h" LocalFileSystem local("local"); // Create the local filesystem under the name "local" int main() { FILE *fp = fopen("/local/out.txt", "w"); // Open "out.txt" on the local file system for writing fprintf(fp, "Hello World!"); fclose(fp); }