taichi yanagisawa
/
LocalFileSystem_Load
udenokai sample
main.cpp
- Committer:
- marishi
- Date:
- 2011-06-10
- Revision:
- 1:4b0cd1f19fd8
- Parent:
- 0:2acd856cf56b
File content as of revision 1:4b0cd1f19fd8:
//udenokai sample #include "mbed.h" LocalFileSystem local("local"); Serial pc(USBTX, USBRX); // tx, rx const unsigned int MAX_LEN = 256; int main() { FILE *fp = fopen("/local/test.txt","r"); if(NULL == fp){ pc.printf("open error"); } char str[MAX_LEN]; fgets( str , MAX_LEN-1 , fp ); pc.printf(str); fclose(fp); }