Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 //udenokai sample 00002 #include "mbed.h" 00003 00004 LocalFileSystem local("local"); 00005 Serial pc(USBTX, USBRX); // tx, rx 00006 00007 const unsigned int MAX_LEN = 256; 00008 00009 int main() 00010 { 00011 FILE *fp = fopen("/local/test.txt","r"); 00012 if(NULL == fp){ 00013 pc.printf("open error"); 00014 } 00015 char str[MAX_LEN]; 00016 00017 fgets( str , MAX_LEN-1 , fp ); 00018 pc.printf(str); 00019 00020 fclose(fp); 00021 }
Generated on Fri Jul 15 2022 17:50:27 by
1.7.2