44件ヒット
[1-44件を表示]
(0.018秒)
検索結果
先頭4件
-
Pathname
# binread(*args) -> String | nil (18258.0) -
IO.binread(self.to_s, *args)と同じです。
...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(2......0, 10) # => "ne one\nThis is line "
//}
@see IO.binread... -
IO
. read(path , **opt) -> String | nil (12.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...る文字列である必要があります。
: :open_args
IO.open に渡される引数を配列で指定します。
これらの他、 :external_encoding など
IO.open のオプション引数が指定できます。
@see IO.binread
例:
IO.read(empty_file) #=> ""
IO.re... -
IO
. read(path , length = nil , **opt) -> String | nil (12.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...る文字列である必要があります。
: :open_args
IO.open に渡される引数を配列で指定します。
これらの他、 :external_encoding など
IO.open のオプション引数が指定できます。
@see IO.binread
例:
IO.read(empty_file) #=> ""
IO.re... -
IO
. read(path , length = nil , offset = 0 , **opt) -> String | nil (12.0) -
path で指定されたファイルを offset 位置から length バイト分読み込んで返します。
...る文字列である必要があります。
: :open_args
IO.open に渡される引数を配列で指定します。
これらの他、 :external_encoding など
IO.open のオプション引数が指定できます。
@see IO.binread
例:
IO.read(empty_file) #=> ""
IO.re...