Well if you exit out of the code right after you find the value then the current variable set will contain the rest of the information. So simply modify the code as such.
while(list(,$value) = each ($file))
{
list ($theusername,$thepassword,$thename,$theemail,$theurl,$thetitle,$thebgcolor,$thelink,$thevlink) = split( "|", $value);
if($theusername == $id)
{
$found = "1";
break;
}
}
//Now you can access the current set of variables and do what you will with them
Simple ehe 🙂