#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "Types.hpp"
#include "Error.hpp"
Go to the source code of this file.
Compounds | |
class | Output |
Defines | |
#define | OUTPUT_STATIC |
Functions | |
char | FileExists (char *filename) |
void | RemoveFile (char *filename) |
Variables | |
char | usedosnewline |
|
Definition at line 59 of file Output.hpp. |
|
Definition at line 267 of file Output.hpp. 00268 { 00269 #ifdef WIN32 00270 _finddata_t fileinfo; 00271 long handle=_findfirst(filename,&fileinfo); 00272 if(handle==-1) 00273 return 0; 00274 _findclose(handle); 00275 return 1; 00276 #else 00277 FILE *file=fopen(filename,"r"); 00278 if(file==NULL) 00279 return 0; 00280 fclose(file); 00281 return 1; 00282 #endif 00283 } |
|
Definition at line 285 of file Output.hpp. 00286 { 00287 unlink(filename); 00288 } |
|
Definition at line 51 of file Output.hpp. |