【发布时间】:2020-02-08 10:33:31
【问题描述】:
我有 3 个文本文件,每个文件包含 10 行:
文本1:
01-TextA
02-TextA
03-TextA
04-TextA
05-TextA
06-TextA
07-TextA
08-TextA
09-TextA
10-TextA
文本2:
01-TextB
02-TextB
03-TextB
04-TextB
05-TextB
06-TextB
07-TextB
08-TextB
09-TextB
10-TextB
文本3:
01-TextC
02-TextC
03-TextC
04-TextC
05-TextC
06-TextC
07-TextC
08-TextC
09-TextC
10-TextC
如何在一个新的文本文件中组合 text1 的第 1 行 + text2 的第 1 行 + text3 的第 1 行等。 它应该是这样的:
01-TextA
01-TextB
01-TextC
02-TextA
02-TextB
02-TextC
03-TextA
03-TextB
03-TextC
04-TextA
04-TextB
04-TextC
05-TextA
05-TextB
05-TextC
【问题讨论】:
-
你想用什么编程语言?
-
你试过什么?基本上你需要同时遍历 3 个文件中的行
-
NVM,我看到了,批处理文件。
-
是否可以使用 Windows 批处理文件来实现这一点?还是用excel?
-
所以,我猜在输出文件中你会得到 30 行而不是 15 行??
标签: file batch-file join text merge