Slightly bletcherous (the for loop) but it works...
<?php
$fp = fopen("pstat011.txt", "r");
$flatfile = fread($fp, filesize("pstat011.txt"));
fclose($fp);
for ($i = 1; $i <= 10; $i++) {
$flatfile = ereg_replace(" {3}", " ", $flatfile);
}
$csv = ereg_replace(" {2}", ", ", $flatfile);
$fp = fopen("pstat011.csv", "w+");
fwrite($fp, $csv);
fclose($fp);
?>