Skip to content

Planet-Source-Code/josh-nixon-file-exist-algorithms__3-5186

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

[\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.

More Info

Submitted On
By Josh Nixon
Level Beginner
User Rating 3.4 (81 globes from 24 users)
Compatibility C, C++ (general), Microsoft Visual C++, Borland C++, UNIX C++
Category Algorithms
World C / C++
Archive File

API Declarations

#include <fstream.h>

Source Code

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published