D DarkZero Guest Apr 5, 2007 #1 Does anyone know the C++ code used to list the contents of a directory? I looked everywhere and can't find it...
Does anyone know the C++ code used to list the contents of a directory? I looked everywhere and can't find it...
S SVXX Guest May 1, 2007 #2 Well..if your C++ code compiles the exe to DOS,you could use a system command? Code: #include <iostream> #include <cstdlib> using namespace std; int main() { system("dir/p"); system("PAUSE"); return 0; }
Well..if your C++ code compiles the exe to DOS,you could use a system command? Code: #include <iostream> #include <cstdlib> using namespace std; int main() { system("dir/p"); system("PAUSE"); return 0; }