Well, depending on how your file data is structured, it could be something as simple as:
$lines = file($filename);
foreach ($lines as $line) {
echo '<input type="text" name="urls[]" value="'
. rtrim($line) . '" size="50"><br>' . "\n";
}
Note that I use rtrim() on $line because the array of lines returned by file() keeps the newline sequences at the end of each line. In this case, you presumably dont want to print with these newline sequences present.