[LC++]Portable way to read directory list

Jack Lloyd lloyd at acm.jhu.edu
Thu Aug 23 08:20:04 UTC 2001


On Wed, 22 Aug 2001, Roger Durañona Vargas wrote:

> I need to write a file dialog that must work under Linux/Windows and maybe
> MAcOS and BeOS. I need a suggestion about this.

By this do you mean get a list of files that are in a directory? Probably
opendir/closedir/readdir will work on all of them fine.

Linux - for sure
BeOS - for sure (IIRC BeOS is pretty much POSIX.1 OK)
MacOS X - for sure (FreeBSD!)
MacOS 7/8/9 - maybe (?)
Windows - Probably. NT has always claimed POSIX.1 compliance, anyway. But I
don't know for sure. Cygwin will have it. VC++ should. Check and see. ;)

-J




More information about the tuxCPProgramming mailing list