Chris Styles
/
LocalFileSystem
Demo program showing the LocalFileSystem in use
main.cpp@1:021abaf618c9, 2010-03-03 (annotated)
- Committer:
- chris
- Date:
- Wed Mar 03 22:10:00 2010 +0000
- Revision:
- 1:021abaf618c9
- Parent:
- 0:53141d94b116
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:53141d94b116 | 1 | #include "mbed.h" |
chris | 0:53141d94b116 | 2 | |
chris | 0:53141d94b116 | 3 | LocalFileSystem local("local"); |
chris | 0:53141d94b116 | 4 | |
chris | 0:53141d94b116 | 5 | int main() { |
chris | 0:53141d94b116 | 6 | |
chris | 1:021abaf618c9 | 7 | FILE *fp = fopen("/local/test.txt", "w"); |
chris | 1:021abaf618c9 | 8 | fprintf(fp, "Hello file system!\n"); |
chris | 0:53141d94b116 | 9 | fclose(fp); |
chris | 0:53141d94b116 | 10 | } |