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
> }

Silly, really, but what's the buffer size of your command prompt window?