Text 拆分文本文件混合格式

Text 拆分文本文件混合格式,text,file-management,Text,File Management,我有一份档案 "Lots of text" "Lots more Text" "Tons of Text, I really Can't emphasize that enough really " 我需要一段文字放进一个单独的文件 1.txt = "Lots of text" 2.txt = "Lots more Text" 3.txt = "Tons of Text, I really Can't emphasize that e

我有一份档案

"Lots of text"
"Lots more Text"

"Tons
of
Text, I really 
Can't emphasize that enough really

"
我需要一段文字放进一个单独的文件

1.txt = "Lots of text"
2.txt = "Lots more Text"
3.txt = "Tons
         of
         Text, I really
         Can't emphasize that enough really"

不知道从哪里开始。在DOS和Linux中尝试了一些脚本编写思想。不介意用Java编程。

你怎么知道什么时候应该有多行呢?我希望我知道。我得到的最好的东西都是用引号括起来的。