I’m working on an opengl project under linux and I was wondering… How can I list the contence of a directory? Since everything in linux is a file, I though
dir = fopen("./",“r”);
would have worked… But when I do that
fgets(filename, 64, dir);
always returns NULL… What am I doing wrong?
(Sorry, I know this isn’t quite an OGL problem, but this is where I come for asking and/or answering question…)