Shortest code to dump a file into workable memory This is a slightly different code golf from the usual problems.  I'm forced to work with Java at my workplace and I'm increasingly annoyed at what I must do to read a file into memory to a String so I can operate on it in a normal way.

The golf is this: What is the shortest possible function to dump a file into your language's smallest data structure of characters?

Java would be char[], C++ would be char*,  Haskell would be a [Char], etc.  I don't care about complete programs or main() functions, but you do have to open and close the file.


  inb4 Unix's &gt;
C#

var a = System.IO.File.ReadAllText("filename.txt");


a is a string that will contain the contents of filename.txt