n

Dependencies:   mbed

main.cpp

Committer:
ee12b079
Date:
2014-07-04
Revision:
0:14179e8daf60

File content as of revision 0:14179e8daf60:


#include "mbed.h"
 
LocalFileSystem local("local");               // Create the local filesystem under the name "local"
 
int main() {
    FILE *fp = fopen("/local/out.txt", "w");  // Open "out.txt" on the local file system for writing
    fprintf(fp, "Hello World!");
    fclose(fp);
    }