Pisg
#5
Tu veux dire générer la page complète à chaque fois ?
c'est un taff monstrueux ça lol , et il n'y a pas moyen de supprimé plusieurs lignes d'un coup de la config en modifiant ceci ?

if { [file exists $confstats] } {
if { [catch {set fopen [open $confstats r]}] } {
puthelp "PRIVMSG $nick :Impossible de lire le fichier $confstats"
return 0
}
set content [read $fopen]
close $fopen

set fopen [open "$confstats.bak" w]
puts $fopen $content
close $fopen

set fopen [open $confstats w]
foreach line [split $content "\n"] {
if { $line != "ligne a supprimer" } {
puts $fopen $line
}
}
close $fopen
}

Encore Merci de ton aide
Répondre Avertir


Messages dans ce sujet
Pisg - par athor69 - 29/04/2009, 12:12
RE: Pisg - par CrazyCat - 29/04/2009, 22:35
RE: Pisg - par athor69 - 29/04/2009, 23:17
RE: Pisg - par CrazyCat - 30/04/2009, 10:34
RE: Pisg - par athor69 - 30/04/2009, 10:39
RE: Pisg - par pulsehosting - 09/02/2015, 18:15
RE: Pisg - par CrazyCat - 09/02/2015, 21:59
RE: Pisg - par pulsehosting - 10/02/2015, 09:18
RE: Pisg - par pulsehosting - 10/02/2015, 16:24
RE: Pisg - par CrazyCat - 10/02/2015, 17:17
RE: Pisg - par pulsehosting - 10/02/2015, 19:37
RE: Pisg - par MenzAgitat - 10/02/2015, 20:12
RE: Pisg - par CrazyCat - 10/02/2015, 22:17

Atteindre :


Utilisateur(s) parcourant ce sujet : 2 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté