Solved

Check whether it is a plain file or directory.

Posted on 2000-03-01
4
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

717 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