#include #include void task1() { FILE* fin = fopen("files/text1.txt", "r"); if (fin == NULL) { puts("File cannot be opened"); return 0; } FILE* fout = fopen("files/out1.html", "r"); if (fin == NULL) { puts("File cannot be opened"); return 0; } fprintf(fout, ""); fprintf(fout, ""); fprintf(fout, ""); fprintf(fout, ""); fprintf(fout, "HTML Document"); fprintf(fout, ""); fprintf(fout, ""); char ch; while ((ch = getc(fin)) != EOF) { if (ch == '\n') { fprintf(fout, "
"); } else { putc(ch, fout); } } fprintf(fout, ""); fprintf(fout, ""); } int main() { task1(); return 0; }