简体   繁体   中英

Suggestion on File I/O opertion with 1024 bytes chunks

嗨,我是Rails开发人员,可以帮助任何人一次执行1024字节块的文件I / O操作。

http://ruby-doc.org/core/classes/IO.html#M002270 :

f = File.new("testfile")
f.read(1024)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM