标签:class print sts enc access nbsp lib perm logs
#include <io.h> #include <stdio.h> #include <stdlib.h> void main( void ) { /* Check for existence */ if( (_access( "D:\\a.txt", 0 )) != -1 ) { printf( "File ACCESS.C exists\n" ); /* Check for write permission */ if( (_access( "ACCESS.C", 2 )) != -1 ) printf( "File ACCESS.C has write permission\n" ); } }
标签:class print sts enc access nbsp lib perm logs
原文地址:http://www.cnblogs.com/tiandsp/p/7440789.html