browsing a file

my problem is as follows ...

i have placed a file in a folder in bin .. how can i check it by writing a programme in c++ if that file is present there or not??

Comments

  • : my problem is as follows ...
    :
    : i have placed a file in a folder in bin .. how can i check it by writing a programme in c++ if that file is present there or not??
    :

    The most portable way is try to open the file for reading. If open fails then the file is not present.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion