write ex15.rb, opening and printing a file