Hi,

I currently reading the book called earn to Programand Im excited
to see a language like Ruby with a clear syntax and probably easier to
understand even for a newbie like me who have very little programming
experience, in fact I already go stocked I would like someone to help me
understand this.

In chapter 11 (Reading and Writing, Saving and Loading,) the author
demonstrates how you can save the output of your programs and I started
wondering when and why you would need to save the output of a program?

I know its probably too early to ask this kind of questions but I really
started wondering since he started talking about YAML which apparently
can be used in multiple languages and I'm assuming this is an important
part of programming?

Can someone be so kind and explain me when and why you would need YAML?

Is this a common practice when writing a program where you dont have
access to a database and which requires little data management?

This is some code sample, this actually creates a file called
ListerQuote.txt and saves the output string.
[code]
filename  = 'ListerQuote.txt'
test_string = 'I promise that Iend valid
swear absolutely that ' + 'I will never mention gazpacho soup again.'

File.open filename, 'w' do |f|
f.write test_string
end
read_string = File.read filename
puts(read_string == test_string)[/code]

Sorry if my question doesn't make too much sense but I'm coming from a
web development world with only some knowledge in Actionscript 3.0,
Javascript, CSS and HTML.

Thanks a lot!