Hi.

Well - thanks to all. Now I've several ways:

1.
value = open(path) {|f| f.read}

2.
file = File.open(path, File::RDONLY)
value = file.read
file.close

3.
value = File.readlines(path).to_s

4.
value = File.readlines(path).join

What is the fastes way (for Ruby) and what should I use?

greetings
Dirk Einecke