snippet library logo
Boxedart - Worlds Largest Development Center
in category
C/C++ / File Manipulation / File Exist
Snippet details
ID: 522
Viewed: 1409
Added: 2004-01-11
Version: 1

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
Checks if a file exist or not

General Details
Snippet uploaded by: Mark
Email : m001d@yahoo.com
Snippet By: Mark

<!---Head--->
none

<!---Body--->


int File_Exist(char *FileName)
    {
    ifstream FileL;
    FileL.open(FileName);
    if(!FileL)
        {
        FileL.close();
        return -1;
    }
    else
        {
        FileL.close();
        return 0;
    }
}




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.