extract urls of a document

You have a file called ffff.txt. In this are several links. You want to extract them. This script will store them in cccc.txt for you.