Open()
-
Hallo!
Mit einfache Befel kann ich prüfen, ob Datei exestiert:
int a = Open("test.xls", O_DENYREAD)
Close(a)Wenn a = -1 dann Datei "test.xls" exestiert nicht.
Jetzt meine Frage, wie kann ich jetzt statt "test.xls", eine Variable
verwenden?
z.B.str = Edit1->Text;
int a = Open( str , O_DENYREAD);
Close(a)Danke
-
Hallo,
einfach mal ausprobieren.

-
char file[]="blabla.xml"; if(FileExists(file)) { blabla...; } else { blabla...; }
-
Hallo action_jackson!
Es hat super funktionirt!!
Danke!!!