3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
6 # Task: Read entire file
8 # SEE: http://rosettacode.org/wiki/Read_entire_file
9 module read_entire_file
11 var filename
= "/etc/issue"
12 var content
= filename
.to_path
.read_all