1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int main(void) { long length; FILE * fp = fopen("d:\\lena(256x256).raw", "rb"); if (fp == NULL) { printf("lena.raw ÆÄÀÏÀ» ¿ ¼ö ¾ø½À´Ï´Ù."); exit(1); } fseek(fp, 0, SEEK_END); length = ftell(fp); printf("ÆÄÀÏ Å©±â=%d ¹ÙÀÌÆ®\n", length); fclose(fp); return 0; } | cs |