作者:奥黛丽凵赫本 | 来源:互联网 | 2023-01-17 09:46
Ihaveafilenames.txtPop,Jackandafilesurnames.txtIoan,Gry.Ineedtoobtainthefollowingou
I have a file names.txt
Pop,Jack and a file surnames.txt
Ioan,Gry. I need to obtain the following output, person.txt
, Pop Ioan, Jack Gry. I must create two programs:
我有一个文件names.txt Pop,Jack和一个文件surnames.txt Ioan,Gry。我需要获得以下输出,person.txt,Pop Ioan,Jack Gry。我必须创建两个程序:
- First read from file names.txt and write in person.txt.
首先从文件names.txt中读取并在person.txt中写入。
- Second read from surnames.txt and write in person.txt.
第二次从surnames.txt读取并写入person.txt。
I need to use pipes for synchronization. How I can do it?
我需要使用管道进行同步。我怎么能这样做?
1 个解决方案