Radulovic Attila
Tag
Bejegyzések száma: 653

Én ezt használom:

#import "kernel32.dll"
int _lclose (int);
int _lopen  (string,int);
#import

#define HFILE_ERROR -1

bool Debug.IsFileExists (string fileLocation) {

    int fileHandle = _lopen(fileLocation, 0);

    if (fileHandle == HFILE_ERROR) {

        return(false);
    }
    else {

     _lclose(fileHandle);

     return(true);
    }
}