OpenGL project under Linux

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…)

Not that I have ever done it but after a quick look in the manpages I came up with the following calls :opendir, readdir, closedir, telldir, seekdir,etc.Have a look at the manpages.

[This message has been edited by zen (edited 01-18-2003).]

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.