- strcpy(inpath, basename);
- strcat(inpath, ".obj");
-
- strcpy(outpath, basename);
- strcat(outpath, ".1.obj");
-
- if ( (in = fopen(inpath, "r")) == NULL ) {
- printf("Cannot open file: %s\n", inpath);
+ if ( (in = fopen(infile, "r")) == NULL ) {
+ printf("Cannot open file: %s\n", infile);