Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/10/2004, 14:40
Avatar de living
living
 
Fecha de Ingreso: mayo-2004
Mensajes: 1.266
Antigüedad: 19 años, 11 meses
Puntos: 2
Código PHP:
<?
$ficheroArray
=file("fichero1.txt");
sort($ficheroArray);
$ficheroTexto=implode('',$ficheroArray);
$fichero2=fopen("fichero2.txt","w");
fwrite($fichero2,$ficheroString);
?>
fichero1.txt es el fichero que quieres ordenar y en fichero2.txt tendrás el fichero ordenado.
__________________
¿Te apasiona el mundo del guión? El portal del guión