2. Открытие файлов
int main(int argc, char *argv[])
{
FILE* inputFile = fopen(argv[1], "r");
FILE* outputFile = fopen(argv[2], "w");
// malloc
// read from input file
// calculate
// write to output file
fclose(inputFile);
fclose(outputFile);
}
Last updated