Peter Vanderhaden wrote:
> Sebastian,
> FYI, the reason I'm sending the prompt to STDERR instead of STDOUT is
> that I've used reopen to redirect STDOUT to a file.  I did that because
> I want to write data to a file.  I'm new to this, so if there's a better
> way to write to the file, I'm all ears :)
> PETERV

File.open(filename,'w') do |f|
  f.puts "Text that's supposed to go in the file"
  puts "Text that's supposed to go to the screen"
  f.puts "More text for the file"
  STDERR.puts "Error message"
end


HTH,
Sebastian
-- 
Jabber: sepp2k / jabber.org
ICQ: 205544826