Hi,
i've printed a 3102 lines text file,but why the top (about 893 lines)
contents was truncated ? only the left lines contents was printed
out.here is my code
io = open("c:/test.txt", "r+")
io.each_line {|line|
puts line
}
thanks for your help
Silly, really, but what's the buffer size of your command prompt window?
···
shaobo.li@gmail.com wrote:
i've printed a 3102 lines text file,but why the top (about 893 lines)
contents was truncated ? only the left lines contents was printed
out.here is my code
io = open("c:/test.txt", "r+")
io.each_line {|line|
puts line
}
this results came from eclipse rdt plugin,yes in command promp window
all the contents was printed ,thanks for your hints 