io - Assign text from file to variable in Ruby without returning text -


i trying parse access logs ruby, file 363mb. i'm working in irb , when try assign text document variable data = logs.read begins returning text interpreter, @ 363mb issue.

how assign contents of file variable without returning value in interpreter?

start irb below :

irb --simple-prompt --noecho

  • --simple-prompt irb prompt >>
  • --noecho off echo on irb

here example:

c:\>irb --simple-prompt >> x = 2 => 2 >> exit  c:\>irb --simple-prompt --noecho >> x = 2 >> 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -