Get file contents to variable.