<?php
$userfile="input.txt";
$bol=file_exists($userfile);
if($bol){
$array = file($userfile);
for($x=0;$x<count($array);$x++){
$line=$array[$x];
$field=explode(";", $line);
print("
<task>
<domain>
<name>".trim($field[0])."</name>
</domain>
</task>
");
}
}else{
print("File not found!");
}
?>
Comments are closed.