chi*_*eat 2 ruby
如何将其写成一行?
in_file = open(from_file) indata = in_file.read
Sun*_*dan 6
File.read("/path/to/file")
它将读取整个文件的内容并作为结果返回。
归档时间:
9 年,10 月 前
查看次数:
2270 次
最近记录: