anEmptyFile.read results in nil:
test.rb:
p RUBY_PLATFORM
p RUBY_VERSION
File.open( "test.txt", "w" ) do |f|
f.write ""
end
File.open( "test.txt", "r" ) do |f|
p f.read
end
output:
% ruby test.rb
"i386-mswin32"
"1.7.2"
nil
Is this new behavior? I’m using the prag installer windows.
~ Patrick May