You can use the File module to read the contents into a string variable. Like so. content = File.read("my_file.rb") ...
確定! 回上一頁