Copy and edit the input file to a new file as follows:
begin loop
Read a line into a String and use the String class's method to replace the spaces in the String with an empty String: ""
Write the...