//************************************** //INCLUDE files for :[\File Exist Algorithms/] //************************************** #include <fstream.h> //************************************** // Name: [\File Exist Algorithms/] // Description:This function will check to see if a file exist in the computer if it doesnt it will return -1 else 0. // By: Josh Nixon (from psc cd) // // // Inputs:None // // Returns:None // //Assumes:This function will check to see if a file exist in the computer if it doesnt it will return -1 else 0. // //Side Effects:None //************************************** int Check_File(char *FileName) { ifstream FileL; FileL.open(FileName); if(!FileL) { FileL.close(); return -1; } else { FileL.close(); return 0; } }