Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago. This question has been closed. Reason: Unclear question
How to use "opendir" to open folder??
LocalFileSystem local("local");
int main()
{
DIR *d = opendir("/local/myfolder/");
struct dirent *p; while((p = readdir(d)) != NULL) {
pc.printf("%s\n", p->d_name);
}
closedir(d);
}
I am using LPC1768. I cannot list the file in the "myfolder" folder. Can anyone help, pls.