By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

enhanced file info

P: n/a
I know that file functions (see below) are non-standard,
but there must be a 'sub'standard as this are very common
things.

I want to:
get a list of files in a directory,
For a given file I want to get the size, access mode, last access date, ...

I am using g++

Thanks,
marc

Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Marc Schellens wrote:

I know that file functions (see below) are non-standard,
but there must be a 'sub'standard as this are very common
things.

I want to:
get a list of files in a directory,
For a given file I want to get the size, access mode, last access date, ...

I am using g++


None of these have standard solutions.
But you can look at www.boost.org
They have encapsulated those things in a portable
way.

And rumor says, that at least parts of the boost
libraries will make it into one of the next standards.
--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #2

P: n/a
Marc Schellens wrote:
I know that file functions (see below) are non-standard,
but there must be a 'sub'standard as this are very common
things.

I want to:
get a list of files in a directory,
For a given file I want to get the size, access mode, last access date, ...

I am using g++

Thanks,
marc


But remember, there are more embedded systems that are
not using filesystems in the world than there are hosted
platforms that have filesystems.

One reason that directories are not in the standard.
Another is that O.S.es tend to differ on how they organize
their files.
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.