这里写自定义目录标题
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#define PERMS 0666
#define DUMMY 0
#define MAXSIZE 1024 //常数定义
int main(int argc, char *argv[])
{
int sourcefd, targetfd; //目标文件和源文件的描述符
int readCounter = 0; //读出的字符计数器
char WRBuf[MAXSIZE]