Actions
Bug #6271
closedtextmode File#read on CRLF
Description
I'm not sure this is bug,
when "File#read(X)" for textmode finishes inside of CRLF, stream keeps CR unread against my intuition.
The following code prints "\r" forever for CRLF.
File.open(FILE, "r") do |f|
until f.eof?
p f.read(1)
end
end
Files
Actions
Like0
Like0Like0Like0Like0Like0