-
accessing LINUX directory tree using C++
I work on LINUX. I've a directory (say root_dir=/home) and many sub-directories inside it. Using C++, I want to get all those sub-directories name as unicode string and store them in a list data structure provided by the c++.
can some suggest how to proceed.
thank u
ESHWAR
-
you can use the dirent library to traverse the current directory and obtain more inforabout each file (e.g., whether the current file is actually a directory): http://www.devx.com/cplus/10MinuteSolution/26748
You can then store the results in a standard container such as std::list.
Danny Kalev
Similar Threads
-
Replies: 6
Last Post: 09-06-2005, 04:53 PM
-
By Gwen Smith in forum vb.announcements
Replies: 0
Last Post: 07-21-2003, 02:17 PM
-
By Keith in forum ASP.NET
Replies: 1
Last Post: 09-04-2002, 12:16 PM
-
By Kevin Moore in forum .NET
Replies: 55
Last Post: 02-27-2002, 03:06 PM
-
Replies: 0
Last Post: 04-26-2001, 12:27 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks