I'm using Arduino IDE, and I'm trying to read from a text file using fopen
function, but it does not work, it shows this error "std::fopen
is not a member of std
"
void tst() {
FILE *fp = std::fopen("test.txt", "r");
char str[60];
if (fgets(str, 60, fp) == 0) {
digitalWrite(pin, HIGH);
} else {
digitalWrite(pin, LOW);
}
}