02/07/15

Dependencies:   mbed

Dependents:   TabbedGUIMbed

Committer:
ADAMSTRUTT
Date:
Wed Jul 08 07:11:31 2015 +0000
Revision:
35:085a674c9fdf
Child:
36:a2d20d5e5e19
Start of Wednessday

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ADAMSTRUTT 35:085a674c9fdf 1 #include "mbed.h"
ADAMSTRUTT 35:085a674c9fdf 2
ADAMSTRUTT 35:085a674c9fdf 3 LocalFileSystem local("local");
ADAMSTRUTT 35:085a674c9fdf 4
ADAMSTRUTT 35:085a674c9fdf 5 int data(){
ADAMSTRUTT 35:085a674c9fdf 6 FILE *fp = fopen("/local/Data.txt", "w"); // Open "out.txt" on the local file system for writing
ADAMSTRUTT 35:085a674c9fdf 7 fprintf(fp, "Hello World!");
ADAMSTRUTT 35:085a674c9fdf 8 fclose(fp);
ADAMSTRUTT 35:085a674c9fdf 9 }