InfLab3/src/main.c
2024-11-30 13:06:00 +04:00

25 lines
548 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <stdio.h>
#include "scanFile.h"
int main(int argc,char *argv[]){
FILE* in;
FILE* out;
printf("Лабораторная работа №3\n\nВариант №1, 6106, автор: Морозов Иван\n\n");
if(argc!=3){
printf("Неверные аргументы! Используйте \"" _PROG_NAME " <имя_входногоайла> <имя_выходногоайла>\"\n");
return 1;
}
in = fopen(argv[1], "r");
out = fopen(argv[2], "w");
processFile(in, out);
fclose(in);
fclose(out);
return 0;
}