You'll need a couple of arrays and a foreach loop, most likely, but this is going to be a godawful bad kludge. You really ought to try a different shopping cart for your own sanity - mySQL was created for just this sort of reason.
But what you'd want to do is use file() to read each line into an array of lines, then using foreach or a for() loop, explode each line out into component parts:
$lines = file('whatever.txt');
$exploded_lines = array();
for ($i = 0; $i < sizeof($lines); $i++) {
$exploded_lines = explode('|', $lines);
}
That would give you all of the lines (records), broken into parts based on the | character. So you'd have an array something like this:
0 => array (0 => 1, 1 => 'halffrag', 2 => 3, etc etc
1 => array (0 => 2, 1 => 'fullFrag', 2 => 1, etc etc
But I stand by my mySQL recommendation
edit: hahah, we need an ajax script or something so we can see who is currently replying to the post or something 😛