编程实现文件的合并
1 include<stdio.h> 2 #include<unistd.h> 3 // 4 #include<fcntl.h> 5 void main() 6 { 7 int fd,fd1,fd2,bytes,bytes1,bytes2; 8 char ch[513],ch1[513],ch2; 9 if((fd=open("1.txt",O_RDONLY))!=-1) 10 { 11 while((bytes=read(fd,ch,512))==512) 12 { 13 ch[bytes]='