Me refiero a algo así:
http://www.example.com/prueba.txt
Contiene = nada
http://www.example.com/modificar.php?texto=100
y se modifique el contenido de prueba.txt a 100
eso, gracias por leer.
http://php.net/manual/es/function.fwrite.php
http://php.net/manual/en/reserved.variables.get.php
$fp = fopen('prueba.txt', 'w');
fwrite($fp, $_GET['texto']);
fclose($fp);
Es todo lo que necesitas, saludos.