View Problem

Read the contents of a file into a string

ExpandDiskEdit
ruby
file = File.new("Solution108.rb")
whole_file = file.read
DiskEdit
csharp .Net 2.0 or later
string contents = System.IO.File.ReadAllText("filename.txt");
ExpandDiskEdit
erlang
Text = readfile("Solution607.erl"),
ExpandDiskEdit
erlang
Text = readfile("Solution608.erl"),

Submit a new solution for ruby, csharp, or erlang
There are 19 other solutions in additional languages (clojure, cpp, fantom, fsharp ...)