Joel Manuel Fernandez Cuyubamba
/
Partie5
TD
Diff: exercice1.cpp
- Revision:
- 0:85af55b43299
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/exercice1.cpp Mon May 02 09:06:17 2016 +0000 @@ -0,0 +1,17 @@ +/*#include "mbed.h" +Serial pc(USBTX,USBRX); +LocalFileSystem local("local"); +int donnee_a_ecrire; +int donnee_lue; +int main () +{ + FILE* File1 = fopen("/local/datafile.txt","w"); + donnee_a_ecrire =0x61; // ASCII caractere "a" + fputc(donnee_a_ecrire, File1); + fclose(File1); + FILE* File2 = fopen ("/local/datafile.txt","r"); + donnee_lue = fgetc(File2); + fclose(File2); + pc.printf("input value = %c \n", donnee_lue); +} +*/ \ No newline at end of file