browsing a file - Programmers Heaven

Howdy, Stranger!

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

Categories

browsing a file

PaGLiiiPaGLiii Posts: 1Member
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

  • stoberstober Posts: 9,765Member ✭✭✭
    : 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.