Example:
variable = new StreamReader( file ).ReadToEnd();
Is that acceptable?
It's good practice to close StreamReader. Use the following template:
StreamReader
string contents; using (StreamReader sr = new StreamReader(file)) { contents = sr.ReadToEnd(); }