18 Mar '13, 4pm

Read/Write Text Files: Ruby Study Notes - Best Ruby Guide, Ruby Tutorial:

<Random Numbers | TOC | Regular Expressions> Let's look at how we can read / write to a text file with the help of a simple program p027readwrite.rb # p027readwrite.rb # Open and read from a text file # Note that since a block is given, file will # automatically be closed when the block terminates File.open('p014constructs.rb', 'r') do |f1| while line = f1.gets puts line end end # Create a new file and write to it File.open('test.rb', 'w') do |f2| # use "\n" for two lines of text f2.puts "Created by Satish\nThank God!" end The File.open method can open the file in different modes like 'r' Read-only, starts at beginning of file (default); 'r+' Read/Write, starts at beginning of file; 'w' Write-only, truncates existing file to zero length or creates a new file for writing. File modes can work like: <file mode><:external encoding><:internal> Let us say you know that the exter...

Full article: http://rubylearning.com/satishtalim/read_write_files.html

Tweets

LOL! 2013 isn't even over yet!

mtnwestrubyconf.org 19 Mar '13, 12am

As a teen and twenty-something programmer I often found myself tossing hundreds of lines of code at a problem. I see this ...

Are you a Ninja or Peasant? Weekend fun

rubylearning.com 30 Mar '13, 4am

: The Ruby Logo is Copyright (c) 2006, Yukihiro Matsumoto. I have made extensive references to information, related to Rub...

How to Write About Anything

How to Write About Anything

searchenginepeople.com 21 Mar '13, 5pm

Research is Your Best Friend. If you have a computer and you have a connection to the Internet, then you have the ability ...

@gfreh é vc?

rubyflow.com 17 Mar '13, 9pm

2011 has been a good year for me so far – financially as well as in terms of cool work in general. I feel like it’s time t...

Make your mark

Make your mark

cheeserland.com 18 Mar '13, 12am

March 18, 2013 in Commercial Break To think about it it’s funny how my mom wanted me to be an author/journalist when i was...

no document…

gembundler.com 21 Mar '13, 5am

Creates a skeleton for creating a rubygem $ bundle gem GEM [--bin or -b] Options: --bin or -b : Generate a binary for your...

Best IDEs for Ruby on Rails - Ruby Forum

ruby-forum.com 22 Mar '13, 4am

On 16 March 2013 04:40, Jason Hsu, Android developer <[email protected]> wrote: > What are your favorite IDEs for Ruby ...

Taking in orders for SS5 Official Merchandises ...

twitlonger.com 21 Mar '13, 3pm

Taking in orders for SS5 Official Merchandises for Singapore fans only! Please read the following carefully before sending...

BEGINNERS: If you think your start-running plan...

runnersworld.com 20 Mar '13, 11pm

The general rule of thumb for increasing mileage is 10 percent a week, so when just starting out and mileage is very low, ...

Using ElasticSearch with Ruby

rubyflow.com 22 Mar '13, 11am

Using ElasticSearch with Ruby Posted by codegram on March 22, 2013 — 0 comments We just published the slides from the usin...

Yahoo files complaint over domain name via @dom...

domainnews.com 17 Mar '13, 6am

Yahoo files complaint over 4Yahoo.com domain name Sunday, 17 March 2013 06:16 Domain News Tweet Share Yahoo has filed a co...

Malaysian amateur Gavin Green touted as next great hope after top finish at @maybankmsiaopen Read story on

Malaysian amateur Gavin Green touted as next gr...

asiantour.com 24 Mar '13, 10am

Kuala Lumpur, March 24: Teenager Gavin Green was hailed by the Malaysian Deputy Prime Minister Tan Sri Dato' Muhyiddin Yas...

2万もするコンテンツがどういうものかという意味で、前から気になってたので買ってみた。 # Ru...

pragmaticstudio.com 31 Mar '13, 10am

If you learn Ruby, you can master Rails. Are you using Rails but find yourself getting stuck, or even bogged down? Do you ...

Lee JongHyun in 我报 (Singapore newspaper) (cr @k...

showbiz.omy.sg 18 Mar '13, 3pm

Go Mobile with omy Social Media Fiesta omy Blog Club Singapore 4Sq Day Singapore Blog Awards Singapore Entertainment Awards

How to write good

How to write good

aluxurytravelblog.com 29 Mar '13, 12pm

It’s Friday and the weekend is just around the corner, so time for a little fun and a slight deviation away from travel wr...