るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.070秒)

別のキーワード

  1. _builtin ioerror
  2. close ioerror
  3. ioerror _builtin
  4. to_write_io ioerror
  5. news for ruby 2.5.0 ioerror

ライブラリ

クラス

検索結果

IO#reopen(io) -> self (18111.0)

自身を指定された io に繋ぎ換えます。

...に等しくなることに注意してください。
IO#pos, IO#lineno などは指定された io と等しくなります。

@param io 自身を繋ぎ換えたい IO オブジェクトを指定します。

@raise IOError 指定された io が close されている場合に発生します。...

IO#reopen(path) -> self (18111.0)

path で指定されたファイルにストリームを繋ぎ換えます。

...= File.new("testfile")
f1.print("This is line three\n")
f2.readlines # => ["This is line one\n", "This is line two\n"]
f1.close
f2.reopen("testfile", "r") # => #<File:testfile>
f2.readlines # => ["This is line one\n", "This is line two\n", "This is line three\n"]
f2.c...

IO#reopen(path, mode) -> self (18111.0)

path で指定されたファイルにストリームを繋ぎ換えます。

...= File.new("testfile")
f1.print("This is line three\n")
f2.readlines # => ["This is line one\n", "This is line two\n"]
f1.close
f2.reopen("testfile", "r") # => #<File:testfile>
f2.readlines # => ["This is line one\n", "This is line two\n", "This is line three\n"]
f2.c...