Remplacer un token d'un fichier texte avec un autre token

Fermé
chida29 Messages postés 31 Date d'inscription jeudi 9 mai 2013 Statut Membre Dernière intervention 29 novembre 2013 - 22 mai 2013 à 15:22
chida29 Messages postés 31 Date d'inscription jeudi 9 mai 2013 Statut Membre Dernière intervention 29 novembre 2013 - 22 mai 2013 à 15:30
Bonsoir,
j'ai un fichier texte de cette forme:

<DOC> 11473808
C0600528|In Situ Nick-End Labeling|1
C0001175|Acquired Immunodeficiency Syndrome|0
C0035316|Retinal Ganglion Cells|1
C0120285|Green Fluorescent Proteins|1
C0034721|Rats|1
C0025663|Methods|2
C1258666|Ganglion Cysts|1
C0017337|Genes|4
C0013812|Electrodes|1
C0206691|Electroporation|2
C0034107|Pulse|1
C1533685|Injections|0
C0001675|Adult|1
C0040300|Tissues|1
C0007634|Cells|1
<DOC> 11473809
C0578399|Quaternary Ammonium Compounds|1
C0678118|Microscopy Electron Transmission|1
C0008564|Chromatography Ion Exchange|1
C0035661|Ritodrine|1
C0020283|Hydrogen-Ion Concentration|2
C0006675|Calcium|2
C0000979|Acetates|0


alors je voudrais remplacer le 3éme token par un autre mai uniquement ou le token est égale à 0.
comment je vais faire?

Merci.
A voir également:

1 réponse

chida29 Messages postés 31 Date d'inscription jeudi 9 mai 2013 Statut Membre Dernière intervention 29 novembre 2013
22 mai 2013 à 15:30
svp aidez moi c'est urgent!!!
0