Text without multiple spaces
3. Katas
Problem:
There is a file with not formatted by our lines, that is, there is more than one space between words.
Task:
Write a program that writes all the words from a file (with unformatted lines) to a file (in which there is one space between words).
!Tip, try this with the help of functions (this will teach you to break the program into small parts and use them several times without copying the code, in contrast to the linear programs)
Data to verify:
Go to the data folder where you will find txt files to check HERE
What's next ?
The program does not come out or works not exactly,go to the solution folder and look at the explanation for solving the problem, this will help you.
If you have everything turned out, you can go to the solution package and compare your solution with the one that's there.
If your decision does not coincide with my decision, then I'm very happy for you. Please share it with me, I will be very grateful to you and then I will add it to the solution folder. How to add your solution, see here