⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 confcopy.c

📁 C
💻 C
字号:
#include <stdio.h>

void main(void)
 {
   FILE *input, *output;

   int letter;

   if ((input = fopen("\\CONFIG.SYS", "r")) == NULL)
     printf("Error opening \\CONFIG.SYS\n");
   else if ((output = fopen("\\CONFIG.TST", "w")) == NULL)
     printf("Error opening \\CONFIG.TST\n");
   else
     { 
       // Read and write each character in the file
       while ((letter = fgetc(input)) != EOF)
         fputc(letter, output);

       fclose(input);     // Close the input file
       fclose(output);    // Close the output file
     }
 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -