shubham c
/
File_handling
n
Revision 0:14179e8daf60, committed 2014-07-04
- Comitter:
- ee12b079
- Date:
- Fri Jul 04 18:59:28 2014 +0000
- Commit message:
- n
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jul 04 18:59:28 2014 +0000 @@ -0,0 +1,10 @@ + +#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); + } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jul 04 18:59:28 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721 \ No newline at end of file