The sketch comes from :
http://www.cplusplus.com/reference/cstdio/fopen/
Why does he not work?
#include <stdio.h>
void setup() {
FILE * pFile;
pFile = fopen ("myfile.txt", "w+");
if (pFile != NULL)
{
fputs ("fopen example", pFile);
}
fclose (pFile);
}
void loop() {
// put your main code here, to run repeatedly:
}
Regards,
JPDaviau