elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Perl] Funcion savefile()
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Perl] Funcion savefile()  (Leído 1,556 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Perl] Funcion savefile()
« en: 11 Octubre 2011, 18:10 pm »

Hola , con esta funcion podran crear un archivo y escribir en el , Si el archivo ya existe solo escribe y no lo borra


Código
  1. #By Doddy H
  2. sub savefile {
  3. open (SAVE,">>".$_[0]);
  4. print SAVE $_[1];
  5. close SAVE;
  6. }


Ejemplo de uso


Código
  1. savefile("C:\\Windows\\Logs\\file.txt","hola")
  2.  


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Perl] Funcion writeword()
Scripting
BigBear 0 1,424 Último mensaje 10 Octubre 2011, 16:52 pm
por BigBear
[Perl] Funcion movewin()
Scripting
BigBear 0 1,380 Último mensaje 11 Octubre 2011, 18:08 pm
por BigBear
[Perl] Funcion killprocess()
Scripting
BigBear 0 1,452 Último mensaje 11 Octubre 2011, 18:09 pm
por BigBear
[Perl] Funcion printear()
Scripting
BigBear 0 1,694 Último mensaje 11 Octubre 2011, 18:10 pm
por BigBear
[Ruby] Funcion savefile()
Scripting
BigBear 0 1,363 Último mensaje 10 Febrero 2012, 21:02 pm
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines