[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

file contents was truncated

shaobo.li

7/7/2005 1:23:00 AM

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

2 Answers

Assaph Mehr

7/7/2005 1:50:00 AM

0



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?

shaobo.li

7/7/2005 2:13:00 AM

0

this results came from eclipse rdt plugin,yes in command promp window
all the contents was printed ,thanks for your hints :)