Not really an openGL question...

How do i get a list of files and directories? I’m using c++. (might be a lame question, never done anythin like that before, though)

This is an old way using dos commands (just copied from turbo C++), you could use a common dialog box if you want to be able to browse the file structure and select a file. Oh and this won’t show long filenames.

#include <stdio.h>
#include <conio.h>
#include <dir.h>

void main()
{
struct ffblk ffblk;
int done;

printf(“Directory listing of .”);
done = findfirst(".",&ffblk,0);
while (!done)
{
printf(" %s
", ffblk.ff_name);
done = findnext(&ffblk);
}
getch();
}