fork download
  1. # your code goes here
  2. def File.readf(file)
  3. read join(expand_path(dirname __FILE__), file)
  4. end
  5.  
  6. puts File.readf "prog.rb"
Success #stdin #stdout 0.02s 7412KB
stdin
Standard input is empty
stdout
# your code goes here
def File.readf(file)
  read join(expand_path(dirname __FILE__), file)
end
  
puts File.readf "prog.rb"