|
From: Ioannis V. <iv...@em...> - 2003-09-05 15:36:36
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of w.y. > Sent: Friday, September 05, 2003 9:55 AM > To: dev...@li... > Subject: Re: [Dev-C++] Access to filesystem > > > Well, there isn't really a portable way to do it since there is no > concept of "directories" etc. in standard C and C++ unfortunately. > > Even if you use the 'boost' libraries it wouldn't work unless > someone implemented the platform specific code on your target > machine. > > This is one of the annoying omissions of the standard I wish they > would add. Actually there are systems where there is not the notion of files or directories. The spirit of the C++98 standard is to be the common subset of abilities of all existing systems. Also the spirit is everything that is provided to be possible to be written with the language itself. That's why directories and files were considered system-specific. The upcoming C++0x standard howwever introduces the notion of availability, that is there will be standard library facilities to be used "where available". So there will be standard library facilities that an implementation may choose to not provide. Also some of them will be "exotic", that is they will not be able to be written with the bare language itself (like network connections). I do not like this notion, I prefer the spirit of C++98. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |