Get contents of an online file and assign it to a variable
<p>How do I retrieve the contents of a file and assign it to a string?</p>

<p>The file is located on a https server and the content is plain text.</p>
