+/**
+ * Writes/flushes check-point file
+ *
+ * @return void
+ */
+function flushCheckPointFile ($nonce, $modulaHash, array $foundHashes) {
+ global $timeFlush;
+
+ // Display message
+ print ('FLUSHING: ' . count($foundHashes) . ' total found.' . PHP_EOL);
+
+ // Flush data
+ file_put_contents(CHECK_POINT, base64_encode($nonce) . ':' . $modulaHash . ':' . base64_encode(serialize($foundHashes)));
+
+ // Set time
+ $timeFlush = microtime(TRUE);
+}
+