Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to read a file in Ruby?



How to read a file in Ruby?..

Answer / Munesh Singh

To read a file in Ruby, you can use the File.read method. For example: File.read('filename.txt').

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How to open a file in Ruby?

1 Answers  


How to check whether a directory exist or not in Ruby?

1 Answers  


What must you do first before you can invoke an unboundmethod object?

1 Answers  


Interpolation is a very important process in Ruby, comment.

1 Answers  


Mention what is the command to create a migration?

1 Answers  


What are the object-oriented programming features supported by ruby?

1 Answers  


Explain when self.up and self.down method is used?

1 Answers  


Explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


Explain Ruby object?

1 Answers  


Explain about variables?

1 Answers  


What is the difference between nil and false in ruby?

1 Answers  


Do you know what is the defined operator?

1 Answers  


Categories