るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.034秒)
トップページ > バージョン:2.6.0[x] > クエリ:read[x] > クエリ:Pathname[x] > クエリ:binread[x] > クラス:Pathname[x]

別のキーワード

  1. _builtin read
  2. stringio read
  3. io read
  4. csv read
  5. pathname read

ライブラリ

検索結果

Pathname#binread(*args) -> String | nil (135835.0)

IO.binread(self.to_s, *args)と同じです。

...じです。

//emlist[例][ruby]{
require "pathname"

pathname
= Pathname("testfile")
pathname
.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname
.binread(20) # => "This is line one\nThi"
pathname
.binread(20, 10) # => "ne one\nThis is lin...