Hi All,

I have a very small yaml file as below:
---
"logfile": C:\examples\code\launchy\devtrack\Dev_Weekly\log.txt

In my ruby program i want to read the location of a file as specified in
the yaml file above. I am writing the following code:

require 'yaml'
data = YAML.load('config.yml')
@path = data["logfile"]
puts @path

But this is not showing anything in console, just blank. What would be
the way to read from the values in a yaml file?
Also a yaml file is saved with extension .yml or .yaml. I have seen both
used in some examples.

Help much appreciated.

-- 
Posted via http://www.ruby-forum.com/.