简体   繁体   中英

Ruby IO.read on Windows

I am trying to write a program to read and write to files in Ruby and neither IO.read or IO.write work. I have read online that IO.read causes problems in Windows but I have not gotten a good answer on how to get it to work.

EDIT: The code I am using is up here

http://electrithm.net/random.rb

我弄清楚了为什么,原来我应该一直使用IO.binread,这要感谢所有阅读我的问题并没有回答它的人,并且根本不应该大喊大叫。

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