Solved

Check whether it is a plain file or directory.

Posted on 2000-03-01
4
184 Views
Last Modified: 2010-04-02

Hi, I am running gcc in solaris. In my home dir. i have several sub-directories. What i need to do is that based on an date given as an input by the user, i have to keep check the home directory and its sub-directories as well which are older than the given date. I dont' how to make it as a loop. please guide   me. hope you understand the question.

--gsbabu
0
Comment
Question by:gsbabu
  • 2
4 Comments
 
LVL 11

Expert Comment

by:alexo
ID: 2574405
Does your compiler support findfirst() and findnext() functions?
Check <io.h> for them.  If they exist, it is easy to write a recursive search.
0
 

Author Comment

by:gsbabu
ID: 2574440
Adjusted points to 40
0
 

Author Comment

by:gsbabu
ID: 2574441
No, My compiler dosen't support those functions, is there any other way to solve.

--gsbabu
0
 
LVL 84

Accepted Solution

by:
ozo earned 40 total points
ID: 2574451
man opendir, readdir
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now