This worked below. Not ideal, but it gets it done quickly. Basically, pull the contents back into php, chop it, and then send it back down to the same file.
PHP Code:
$fname="information.dat";
$tempfile=file_get_contents($fname);
$tempfile=chop($tempfile)."\r\n";
$fh = fopen($fname, 'w') or die("Cannot open file");
fwrite($fh, $tempfile);
fclose($fh);
Note: This only works if you write the file and don't prompt the save/open menu.