; Module/File: System_GetFileAccess1.pb ; Function: Get file exists and accesses - Linux ; Author: Omi ; Date: Dec. 13, 2014 ; Version: 0.2 ; Target Compiler: PureBasic 5.22/5.31/5.40 ; Target OS: Linux: (X/K/L)ubuntu, Mint, 32/64, Ascii/Uni ;-------------------------------------------------------------- ImportC "" access(file.p-utf8, type) EndImport #F_OK = 0 #X_OK = 1 #W_OK = 2 #R_OK = 4 Global.s gCMem, gFile gFile= #PB_Compiler_Home + "catalogs/ColorTable.xml" ;gFile= #PB_Compiler_Home + "compilers/pbdebugger" ;file exist Debug access(gFile, #F_OK); 0= ok, -1= nok ;read Debug access(gFile, #R_OK) ;write Debug access(gFile, #W_OK) ;exec Debug access(gFile, #X_OK) ; IDE Options = PureBasic 5.40 LTS Beta 9 (Linux - x86) ; CursorPosition = 5 ; EnableUnicode ; EnableXP