Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
'#{File.read("file")}' puts
不工作。是否可以读取文本文件的内容GolfScript?
GolfScript
扩展只发生在#{...}双引号字符串中:
#{...}
"#{File.read('file')}" puts
工作正常。
但是,有一些问题。
'file'
"#{File.read('file')#1}"
"#{File.read('file')#2}"