02/07/15
Dependencies: mbed
Diff: Data.cpp
- Revision:
- 35:085a674c9fdf
- Child:
- 36:a2d20d5e5e19
diff -r e930f0eeb5f3 -r 085a674c9fdf Data.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Data.cpp Wed Jul 08 07:11:31 2015 +0000 @@ -0,0 +1,9 @@ +#include "mbed.h" + +LocalFileSystem local("local"); + +int data(){ + FILE *fp = fopen("/local/Data.txt", "w"); // Open "out.txt" on the local file system for writing + fprintf(fp, "Hello World!"); + fclose(fp); +} \ No newline at end of file