View Problem

Read the contents of a file into a string

ExpandDiskEdit
ruby
file = File.new("Solution108.rb")
whole_file = file.read

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