Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 11-04-2008, 01:39 PM   #1
Baseband Member
Join Date: Oct 2008
Posts: 21
Default Dir-listing in C++

What's the best way to get a directory listing in C++? OS is Windows XP Pro SP2. I've been using

system("dir /b > tempfile.txt");

Then I just read-line the file into an array.

I know there's a better way to do it, maybe a *.h file somewhere that provides a class or some utility for it.
miked8887 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 05:58 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0