Joel Manuel Fernandez Cuyubamba
/
Partie5
TD
Diff: exercice2.cpp
- Revision:
- 0:85af55b43299
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/exercice2.cpp Mon May 02 09:06:17 2016 +0000 @@ -0,0 +1,16 @@ +/*#include "mbed.h" +Serial pc(USBTX,USBRX); +LocalFileSystem local("local"); +char read_string[64]; +int main () +{ + FILE* File1 = fopen("/local/textfile.txt","w"); + fputs("Beaucoup de mots et de lettres...", File1) +; + fclose(File1); + FILE* File2 = fopen ("/local/textfile.txt","r"); + fgets(read_string,256,File2); + fclose(File2); + pc.printf("text data: %s \n",read_string); +} +*/ \ No newline at end of file