469,294 Members | 1,576 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,294 developers. It's quick & easy.

get the file names?

Greetings all,

How can I get the filenames in the current directory?
I am working under linux, g++ compiler. TIA.

Deephay
Mar 1 '06 #1
4 2517

Deephay wrote:
Greetings all,

How can I get the filenames in the current directory?
I am working under linux, g++ compiler. TIA.


[Off Topic]
Std C++ doesnot give a way to do this since concept of directories and
files is platform-specific aspect. Try comp.os.linux

[As An Aside]
Lookup readdir, opendir, seekdir (man pages)

Mar 1 '06 #2
thx!

"Neelesh Bodas" <ne***********@gmail.com> worte
:11**********************@u72g2000cwu.googlegroups .com...

Deephay wrote:
Greetings all,

How can I get the filenames in the current directory?
I am working under linux, g++ compiler. TIA.


[Off Topic]
Std C++ doesnot give a way to do this since concept of directories and
files is platform-specific aspect. Try comp.os.linux

[As An Aside]
Lookup readdir, opendir, seekdir (man pages)

Mar 1 '06 #3
thx!

"Neelesh Bodas" <ne***********@gmail.com>
wrote:11**********************@u72g2000cwu.googleg roups.com...

Deephay wrote:
Greetings all,

How can I get the filenames in the current directory?
I am working under linux, g++ compiler. TIA.


[Off Topic]
Std C++ doesnot give a way to do this since concept of directories and
files is platform-specific aspect. Try comp.os.linux

[As An Aside]
Lookup readdir, opendir, seekdir (man pages)

Mar 1 '06 #4
USE __FILE__ macro

Mar 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Joe Gazda | last post: by
6 posts views Thread by Kevin T. Ryan | last post: by
3 posts views Thread by Chris | last post: by
7 posts views Thread by Petr Jakes | last post: by
8 posts views Thread by OziRus | last post: by
4 posts views Thread by Jay | last post: by
5 posts views Thread by Steven D'Aprano | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.