From kodeboard, 4 Years ago, written in Ruby.
Embed
  1. file = File.open("path-to-file.txt", "rb")
  2. contents = file.read

You must login to reply or comment on this code.