in reply to Re: read file into 1 line string
in thread read file into 1 line string

Nice solution :)

Althrough I think it would not give the desired output for an input file like this:

xxxxxxx xxxxxxxx xxxxxxxxx xxxxxx