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


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

Re: C++ and directories

From "Bo Persson" <bop@gmb.dk>
Newsgroups comp.lang.c++
Subject Re: C++ and directories
Date 2011-08-17 12:39 +0200
Message-ID <9b1k3oFiv4U1@mid.individual.net> (permalink)
References <_8j2q.43956$nj1.56@newsfe19.iad>

Show all headers | View raw


Edward Hvarregaard wrote:
> newby here
>
> 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 startup code I need must do the following
>
> If  "C:\SSF\ProgramFiles\Exch.txt" does not exist
> then Setup
>
> Setup   needs to be a function that creates missing path elements
> and an empty "Exch.txt" file
>
> Thanks
>
> Ed

The easiest way to see if a file exists is to try to open it! If that 
fails, it doesn't exist.


Bo Persson

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