Need to make an alphabetically sorted list of phrases. Each phrase has several words separated by spaces. Although I have allocated an array for the records specifying expected max record length, each 'read' only 'strips off' the first word of each record, ignoring the rest. I have looked at all sorts of 'qualifiers' for the 'open file' and 'read record' statements without finding any solution.
There is the obvious, but to me very 'unpalatable', solution of replacing all the intervening spaces in any input record, by some other character, like an 'underscore'. But that, seems a clumsy solution (it's so easy to just tap the space bar between the words in an input record)!
Has any one met with, and overcome, this 'truncation of a read at intervening spaces' problem???