Une mini librairie PERL pour gérer vos fichiers

Creation: 29 novembre 2004
Mise à jour: 25 novembre 2008
Version: 1.2
Author: Jean-Louis Bicquelet-Salaün
Location: http://jlbicquelet.free.fr
Copyright: (c) 2004-2008 Jean-Louis BICQUELET-SALAÜN

file library

file subroutine manipulation.

You can get the library libfile.pm.

file_read

reads a text file and put it in a list.

  @t = &file_read("libfile.pl");
  &lines_print(@t);

file_write

writes a list into a text file

  &file_wite(rd.pl",@t);
  

lines_print

displays a list with a number before each element

  &lines_print(@t);


examples

read and display a file

require libfile;

  #read the file
  @t = libfile::file_read("libfile.pl");
  # displat it with a line
  &libfile::lines_print(@t);