12件ヒット
[1-12件を表示]
(0.010秒)
検索結果
-
IO
. binread(path , length = nil , offset = 0) -> String | nil (6101.0) -
path で指定したファイルを open し、offset の所まで seek し、 length バイト読み込みます。
...nThis is line two\nThis is line three\nAnd so on...\n")
IO.binread("testfile") # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
IO.binread("testfile", 20) # => "This is line one\nThi"
IO.binread("testfile", 20, 10) # => "ne one\nThis is line "
//}
@see...