Unify Broken Lines

Let's say you have a text file that looks like this:
Henry Mark
"David
Guetta"
"Fobrice
Kilimanjaro
"Heidi "SealFace"asd
Klum"
jsfjsdfhjsd
"324234"
"324324324"23423423423
gvcxzgxcgvxvcv"
and you need to get this:
Henry Mark
"David Guetta"
"Fobrice Kilimanjaro "Heidi "SealFace"asd Klum"
jsfjsdfhjsd
"324234"
"324324324"23423423423 gvcxzgxcgvxvcv"
It looks simple enough for a few lines; what if you had to repeat the same over a thousand or more?

Use this code:

https://github.com/unullmass/textytext/blob/master/LineUnifyer.java
Post a Comment