I am going to discuss about how to read a file in Ruby

Initially we need a text file,
 
lets' start

fname = ARGV.first  #assigns file name dynamically
 text= open(fname)
print text.read  #reads the file


Popular Posts

Blogger templates

Blogger news

Blogroll

Navigation

Total Pageviews

Powered by Blogger.

Labels

About Me hi this is chandrasekhar completed B.Tech in 2012.I like blogging

Labels

Labels

Blogroll

Featured Post (Slider)

About

Contact us

Combine

Horizontal

Vertical1

Gallery

Vertical2

Portfolio

Contact Form

Name

Email *

Message *

Most Trending

Top 10 Articles