Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

FileUtil.cc File Reference

#include "FileUtil.hh"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdlib>

Include dependency graph for FileUtil.cc:

Include dependency graph

Go to the source code of this file.

Functions

int FileExists (const char *path)


Function Documentation

int FileExists const char *  path  ) 
 

Definition at line 9 of file FileUtil.cc.

Referenced by LCDXML2G4DetConst::SetXMLFile().

00010 {
00011   int ret;
00012   ifstream chkFile(path);
00013 
00014   if (chkFile)
00015     ret = 1;
00016   else
00017     ret = 0;
00018 
00019   chkFile.close();
00020   return ret;
00021 }


Generated on Thu Oct 7 18:44:47 2004 for LCDG4 by doxygen 1.3.4