Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8905

Re: C++ and directories

From Nobody <nobody@nowhere.com>
Subject Re: C++ and directories
Date 2011-08-16 11:57 +0100
Message-Id <pan.2011.08.16.10.57.57.450000@nowhere.com>
Newsgroups comp.lang.c++
References <_8j2q.43956$nj1.56@newsfe19.iad>
Organization Zen Internet

Show all headers | View raw


On Mon, 15 Aug 2011 17:49:55 -0700, Edward Hvarregaard wrote:

> I am having trouble getting started in C++   I have done some programming
> in PASCAL where I had no problem finding the commands needed to deal with
> directories, files and attributes.  where can I find the similar commands
> for C++ ?

The C++ language isn't tied to a specific platform. Consequently, it
doesn't include features which are platform-specific. Directories are such
a feature: not all platforms have them, and those that do can have wildly
different semantics.

So you need to use either a third-party library (e.g. boost::filesystem),
or the platform's native OS functions (e.g. opendir/readdir/closedir on
Unix, FindFirstFile/FindNextFile/FindClose on Windows).

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

C++ and directories "Edward Hvarregaard" <edwardh@shaw.ca> - 2011-08-15 17:49 -0700
  Re: C++ and directories Ian Collins <ian-news@hotmail.com> - 2011-08-16 12:55 +1200
    Re: C++ and directories jt@toerring.de (Jens Thoms Toerring) - 2011-08-16 11:15 +0000
  Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-16 11:57 +0100
    Re: C++ and directories Juha Nieminen <nospam@thanks.invalid> - 2011-08-16 11:42 +0000
      Re: C++ and directories Marc <marc.glisse@gmail.com> - 2011-08-16 11:49 +0000
      Re: C++ and directories jt@toerring.de (Jens Thoms Toerring) - 2011-08-16 11:58 +0000
      Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-16 16:02 +0000
      Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-17 13:09 +0100
        Re: C++ and directories Juha Nieminen <nospam@thanks.invalid> - 2011-08-17 13:02 +0000
          Re: C++ and directories Nobody <nobody@nowhere.com> - 2011-08-17 18:11 +0100
          Re: C++ and directories "Paul" <pchristor@yahoo.co.uk> - 2011-08-18 20:38 +0100
            Re: C++ and directories Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-23 01:03 -0700
          Re: C++ and directories Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-08-23 01:06 -0700
  Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-16 15:24 +0000
  Re: C++ and directories "Bo Persson" <bop@gmb.dk> - 2011-08-17 12:39 +0200
    Re: C++ and directories Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-17 11:39 +0000
  Re: C++ and directories "Edward Hvarregaard" <edwardh@shaw.ca> - 2011-08-22 10:06 -0700

csiph-web