Transformation d'un fichier texte

Résolu/Fermé
chida29 Messages postés 31 Date d'inscription jeudi 9 mai 2013 Statut Membre Dernière intervention 29 novembre 2013 - 15 mai 2013 à 18:31
chida29 Messages postés 31 Date d'inscription jeudi 9 mai 2013 Statut Membre Dernière intervention 29 novembre 2013 - 21 mai 2013 à 19:57
Bonjour,

j'ai un fichier texte de cette forme:
PMID- 18389756
AB - The aim of this study was to demonstrate the advantages and efficacy of an
absorbable haemostatic sponge for use in coloproctology during surgery for the
most frequent pathologies of the anal canal and perineal region. The haemostatic
sponge is made of absorbent gelatin that is insoluble in water and is endowed
with haemostatic power. It can be produced in various sizes and forms adaptable
to different uses and presents no toxic properties.
PMID- 17380418
AB - Impact of urban air pollution has variety of focuses such as urban ecology,
human health, economy, etc. But human health is always given priority. Air
pollution is threat to the lives of people living in big cities of Pakistan. In
Lahore only there die 1,250 people annually because of air pollution.

je voudrais ajouter:
- des balise <doc><docno> avant chaque PMID
- une balise </docno> aprés chaque PMId
- une balise <Abstract> avan chaque AB
- une balise </Abstract> à la fin du texte
- et enfin je ferme avec </doc>

la question est: comment je vais programmé sa en java.
svp aidez moi
Merci d'avance.
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
21 mai 2013 à 19:57
bonsoir,
c bon jai trouvé la solution!! :) merci comm
0