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
>
inb4 Unix's >? – Prince John Wesley Jun 15 '12 at 14:28byte[]in java? – Prince John Wesley Jun 15 '12 at 14:39chars because that's what I'm really interested in. – eternalmatt Jun 15 '12 at 15:37mmapthe file? – gnibbler♦ Jun 17 '12 at 11:04