美文网首页
Ruby: File

Ruby: File

作者: bookinstock_ | 来源:发表于2017-04-21 08:01 被阅读9次

intro

  • File class is subclass of IO class.
  • use File is more straight forward than use IO directly.
  • note: #inspect returns a FakeFS::File obj which is not real File obj.
  • methods e.g.: #open, #close, #read, #write, #seek, #readlines, etc..
  • note: use #rewind before the second call #read.

相关文章

网友评论

      本文标题:Ruby: File

      本文链接:https://www.haomeiwen.com/subject/phgrzttx.html