enhanced file info

M

Marc Schellens

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
 
K

Karl Heinz Buchegger

Marc said:
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.
 
T

Thomas Matthews

Marc said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top