Read and modify text file
Hello everyone, I am still a student and new to JAVA. I would like to write a program that read from a text file and make some modification , and save it into a word document.
What I mean by modification is : I have a paragraph in the text file as shown below;
line 1~ "Our records indicate that you have never posted
line 2~ to our site before! Why not make your first post
line 3~ today by saying hello to our community
line 4~ in our Introductions forum."
As you can see, the alignment of the paragraph is not right and i want all of them in 1 full sentence.
Please, any help would be greatly appreciated.
*****
EDITED : Sorry for my bad interpreting at the first post so let me rephrase the program that I want.
The program that 1.read and concatenate the texts untill it find the "line break"
2. skip to next line once it find the "line break" and repeat step 1.
*****
Thanks and Regards,
Hearty