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.
struct ffblk ffblk;
printf(“Directory listing of .”);
done = findfirst(".",&ffblk,0);
done = findnext(&ffblk);