shubham c
/
File_handling
n
Diff: main.cpp
- Revision:
- 0:14179e8daf60
diff -r 000000000000 -r 14179e8daf60 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jul 04 18:59:28 2014 +0000 @@ -0,0 +1,10 @@ + +#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); + } \ No newline at end of file