#include #include int main(int argc, char *argv[]) { system("TITLE tga-chop"); FILE* tga1 = NULL; FILE* tga2 = NULL; tga1 = fopen("input.tga", "r"); tga2 = fopen("output.tga", "w"); char z,y[50000]; int te = 0; int cur = 0; do { z = fgetc(tga1); y[cur] = z; printf("%c", z); te++; cur++; } while (z != EOF); printf("\n%ld\n",te); int cur2 = 0; do { fputc(y[cur2],tga2); cur2++; } while (cur2 != (cur - 24)); fclose(tga1); fclose(tga2); system("PAUSE"); return 0; }