"); } fseek($fp, $pos); // move pointer to start location fputs($fp, $motoRecord); // rewrite record } $pos = ftell($fp); // compute file pointer position } // end while fclose($fp); ?>