How to use fopen in the extended module?
Posted: Mon Sep 05, 2022 12:37 pm
I'm writing my own module, which requires file operations. But when I write file * FP = fopen (file, "R") in the C code, the returned result is null, that is, the file does not exist. Is it because I don't have mount spiffs? But why can micropython itself read it? I use Python to execute OS Listdir () can read all the files in the directory.