![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Ecriture d'unfichier sur mbed pour sauvegarde de données
Fork of LocalFileSystem_HelloWorld by
main.cpp
- Committer:
- LouisReynier
- Date:
- 2017-06-22
- Revision:
- 1:a4757252e0ae
- Parent:
- 0:cc465aef98cf
File content as of revision 1:a4757252e0ae:
#include "mbed.h" LocalFileSystem local("local"); // Create the local filesystem under the name "local" int main() { int tablo[6] = {4, 8,15, 16, 23, 46}; int i = 0; FILE *fp = fopen("/local/compil.txt", "w"); // Open "out.txt" on the local file system for writing for (i =0; i<6; i++) { fprintf(fp, "%d \n", tablo[i]); } fclose(fp); }