117件ヒット
[101-117件を表示]
(0.018秒)
クラス
-
File
:: Stat (24) - IO (24)
- Pathname (9)
- Tempfile (60)
検索結果
-
IO
# fdatasync -> 0 (25.0) -
IO のすべてのバッファされているデータを直ちにディスクに書き込みます。
...@raise NotImplementedError fdatasync(2) も fsync(2) も
サポートされていない OS で発生します。
//emlist[例][ruby]{
require "tempfile"
Tempfile.open("testtmpfile") do |f|
f.print "test"
File.read(f.path) # => ""
f.fdatasync
File.read(f.path) # => "test"
end
//}... -
IO
# flush -> self (25.0) -
IO ポートの内部バッファをフラッシュします。
...ープンされていなければ発生します。
@raise Errno::EXXX fflush(3) が失敗した場合に発生します。
//emlist[例][ruby]{
require "tempfile"
Tempfile.open("testtmpfile") do |f|
f.print "test"
File.read(f.path) # => ""
f.flush
File.read(f.path) # => "test"
end
//}...