查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: write-i.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/IO/write-i.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Writes the given string to <em>ios</em>. The stream must be opened for writing. If the argument is not a string, it will be converted to a string using <tt>to_s</tt>. Returns the number of bytes written. - !ruby/struct:SM::Flow::VERB body: " count = $stdout.write( "This is a test\\n" )\n puts "That was #{count} bytes of data"\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " This is a test\n That was 15 bytes of data\n" full_name: IO#write is_singleton: false name: write params: | ios.write(string) => integer visibility: public
💾 保存文件
← 返回文件管理器