include("config.php"); //incluimos el fichero config.php donde tenemos la configuración del script if(!file_exists($file)) //si el txt no existe... { $fp=fopen($file,"w"); //creamos un txt por si no tá creado fputs($fp,"0\n0\n0\n0"); //le ponemos las respuestas desde 0 fclose($fp); //cerramos el txt } ?>