Im trying to make a windows program which list folders and files in a directory, is there a c or c++ for this?
Im trying to make a windows program which list folders and files in a directory, is there a c or c++ for this?
In stdlib.h there is a function system(); - it takes command like parameters.
system("dir") should suffice.
Try learning to read the FAQ first
http://faq.cprogramming.com/cgi-bin/...&id=1044780608
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.