![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
Data.cpp@35:085a674c9fdf, 2015-07-08 (annotated)
- 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?
User | Revision | Line number | New 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 | } |