There is a text file containing words with 1 space between each of them. And there is also a command line entry that gives the length of line (output) wanted. Output will be words that fit into the length of the line (taken from command line).
Also the first word will be on the left side of the line and the last word will be right side of it. The spaces between each word will be same.
Any help will be appreciated thanks for replying.