Havent done this before, but basically you can read the content of each file and get each line and store it as an array element.
So, you'll get something like:
$teamName[0]="team1";
$teamName[1]="team2";
.
.
.
$teamName[15]="team16";
and also
$point[0]="16";
blah... blah ...
You can then compare all these ... try to think about the logic.
HTH.