CodeShare

Dependencies:   FatFileSystem mbed

Fork of 4180_Lab2_USB by Jeremy Cai

Committer:
chris
Date:
Mon Sep 13 14:20:21 2010 +0000
Revision:
0:4e756c4c88a7
Child:
1:fca955be2a5b

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chris 0:4e756c4c88a7 1 #include "mbed.h"
chris 0:4e756c4c88a7 2 #include "MSCFileSystem.h"
chris 0:4e756c4c88a7 3
chris 0:4e756c4c88a7 4 MSCFileSystem fs ("fs");
chris 0:4e756c4c88a7 5
chris 0:4e756c4c88a7 6 int main () {
chris 0:4e756c4c88a7 7
chris 0:4e756c4c88a7 8 FILE *fp = fopen("/fs/hello.txt","w");
chris 0:4e756c4c88a7 9 fprintf(fp,"Hello world!\n");
chris 0:4e756c4c88a7 10 fclose (fp);
chris 0:4e756c4c88a7 11
chris 0:4e756c4c88a7 12 }