Bienvenido a Tecnohackers

Tecnohackers » Programacion » Area de Programacion » Scripting. VBS, Batch, Bash, JavaSript.
 » 

[Perl] Funcion savefile()



Autor Tema: [Perl] Funcion savefile()  (Leído 982 veces)

Desconectado Doddy

  • Veterano
  • ***
  • Mensajes: 249
  • Slow Mind
[Perl] Funcion savefile()
« en: Mayo 28, 2011, 03:35:52 am »

Funcion para escribir en archivos

Código: You are not allowed to view links. Register or Login
#By Doddy H
sub savefile {
open (SAVE,">>".$_[0]);
print SAVE $_[1];
close SAVE;
}

Ejemplo de uso

Código: You are not allowed to view links. Register or Login
savefile("C:\\Windows\\Logs\\file.txt","hola")
You are not allowed to view links. Register or Login

Tags:
Tags:

 


SMF 2.0.19 | SMF © 2016, Simple Machines
Paginas Afiliadas
Twitter - FaceBook - Daraxblog
Designed by Smf Personal