Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Background
User and file input and output - and also reading from other streams such as connections to other processes and other (remote) web services. Not to forget file system checking and manipulation
Tips and short articles on this subject
Ruby Programming Course - Saturday and Sunday
Some Ruby programming examples from our course
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Ruby module R106
Input and Output in Ruby
Exercises, examples and other material relating to training module R106. This topic is presented on public courses Learning to program in Ruby, Ruby Programming

Ruby Programming - A Modern, Object Oriented, Portable Scripting language. This quickly moving course covers the fundamentals of the Ruby language for ...
http://www.wellho.net/course/rpfull.html  [course]
Learning to Program in Ruby - A Modern, Object Oriented, Portable Scripting language. Ruby is very much an object oriented language, and we concentrate ...
http://www.wellho.net/course/rlfull.html  [course]
basedir = "." contains = Dir.new(basedir).entries puts contains
http://www.wellho.net/resources/ex.php4?item=r106/afid.rb  [code sample]
I was giving a Public Ruby Course to a small group at the end of last week ... and having a small group gave me the opportunity to write some demonstrations ...
http://www.wellho.net/mouth/1587_Som ... ourse.html  [short article]
# Open files for read, overwrite and append fhi = File.new "canal_ip.txt" filtered = File.new "selected.txt","w" logged = File.new "logged.txt","a" ...
http://www.wellho.net/resources/ex.php4?item=r106/filestuff.rb  [code sample]
fhi = IO.popen("netstat -s") while (line = fhi.gets) if line.index("unknown") print line end end
http://www.wellho.net/resources/ex.php4?item=r106/sysact.rb  [code sample]
We're so busy during the week at the moment that I'm running an extra Ruby Course this weekend. The main use of Ruby is within "Ruby on Rails", but ...
http://www.wellho.net/mouth/1887_Rub ... unday.html  [short article]

User and file input and output - and also reading from other streams such as connections to other processes and other (remote) web services. Not to forget file system checking and manipulation

This topic is presented on public courses Learning to program in Ruby, Ruby Programming

Examples from our training material
afid.rb   All files in a directory
ddd   parse a directory
filemore   Analysing a file / counting events
filestuff.rb   File handling demonstration
finfo.rb   File status checks
ndo   Running another process - netstat example
sysact.rb   Run a process from Ruby, stream output back
webreader.rb   Read a page given its url
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Opening and closing files.
Reading and writing from files.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


© WELL HOUSE CONSULTANTS LTD., 2009: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho