core :: CString :: file_exists
private fun file_exists: Bool `{
#ifdef _WIN32
DWORD attribs = GetFileAttributesA(self);
return attribs != INVALID_FILE_ATTRIBUTES;
#else
FILE *hdl = fopen(self,"r");
if(hdl != NULL){
fclose(hdl);
}
return hdl != NULL;
#endif
`}
lib/core/file.nit:1397,2--1408,3