From: volty@... Date: 2003-04-28T12:38:35+09:00 Subject: Re: File reading and line continuation with '\' class File def each_cont (sep = $/) h = '' each_line (sep) { |x| if x =~ /\\#{sep}/ h << x.chomp("\\#{sep}") elsif h.empty? yield (x) else yield (h+x) h = '' end } end end f = open ('test.txt').each_cont { |x| print x; }.close -- saluti, Marjan Popovski