in reply to Re^2: read file into 1 line stringin thread read file into 1 line string
It would be totally sufficient.
Another thing I don't get is why even check for empty string? How is that relevant?