我有一个输入文件a.txt中的一些内容爪哇 - 文件操作
Line 1 : "abcdefghijk001mnopqr hellohello"
Line 2 : "qwertyuiop002asdfgh welcometologic"
Line 3 : "iamworkingherefromnowhere002yes somethingsomething"
Line 4 : "thiswillbesolved001here ithink"
我要读的A.TXT文件,并将其写入到两个单独的文件。即,应该将具有001的行写入output1.txt,并将具有002的行写入output2.txt
有人可以用Java编程中的逻辑帮助我解决这个问题。
谢谢, 那仁
欢迎#1。你的问题很好。谷歌和尝试的东西,并张贴您的代码,如果有任何错误或逻辑错误等来解决这里。 – vels4j