From: Stefano Crocco Date: 2006-11-10T07:46:27+09:00 Subject: Re: [Ruby Newbie] Reading in a file generated by df I'd say your code is correct. I tried it myself, and it works. I use linux, though, but I don't think this makes a difference. The only reason I can think of for what happens to you is that the file you're trying to read is empty, but you'll have already checked that. At any rate, there's a far simpler way to read the contents of the file: doc_array=File.readlines('diskcheck.txt') I hope this can help -- Posted via http://www.ruby-forum.com/.