SHDENYxx 001 002 003 004 005 006 007 Slides: 7 Download presentation 예제 : SH_DENYxx /*001*/ /*002*/ /*003*/ /*004*/ /*005*/ /*006*/ /*007*/ /*008*/ /*009*/ SQ Lab. /* fsopen 01 SH_DENYxx 01 */ #include "stdio. h" #include "stdlib. h" #include "string. h" #include "share. h" /* SH_DENYRW */ #pragma warning(push, 2) 5 /*010*/ void main() /*011*/ { /*012*/ FILE *file 01; /*013*/ file 01 = _fsopen("c: \files\SH_DENYxx 01. txt", "r", /*014*/ SH_DENYRW); /*015*/ if(file 01 == NULL) /*016*/ { /*017*/ printf("n open() error : (%i)%s", errno, strerror(errno)); /*018*/ getchar(); /*019*/ exit(0); /*020*/ } /*021*/ [참고] /*014*/ SQ Lab. SH_DENYRD); SH_DENYWR); SH_DENYNO); 6 /*022*/ puts(""); /*023*/ char buffer[45]; /*024*/ /*025*/ do /*026*/ { /*027*/ fread(buffer, 45, 1, file 01); /*028*/ buffer[44] = '