i need to write a program which accepts a folder as input and browses through that folder and says whether there is a file or a subfolder present in it and generate an xml file that gives the hierarchy(subfolder names & file names present) in that folder.
BUT IT SHOULD NOT USE ANY WINDOWS API. I'M WRITING IT FOR LINUX/UNIX.

Can anyone kindly shed light on this one ASAP.
All suggestions & help will be deeply appreciated.

thank you.

Recommended Answers

All 3 Replies

Look into boost filesystem perhaps? I think it would satisfy those requirements (besides the xml file)

boost file system ?? can u pls elaborate on what to do exactly.

NAME
       ftw, nftw - file tree walk

SYNOPSIS
       #include <ftw.h>

       int  ftw(const  char  *dir,  int (*fn)(const char *file, const struct stat *sb, int
       flag), int nopenfd);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.