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
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.