Thanks!
I've got it working..Is this a good way to write it?

---
require "open-uri"

print 'Skriv in adress: '
addr = gets.chomp

        open(addr) do |addr|
        fil = File.open('file', 'a')
        fil << addr.read
        fil.close
end
---