in reply to put file content into a string

In the QandASection: files section of Categorized Questions and Answers, see How do I read an entire file into a string?

Caution: Contents may have been coded under pressure.