Parsing de fichier en C++ : Au secours :(
Bonjour,
Je debute en C++ (programmation sous windows xp), et je cherche a parser un fichier pour en creer d'autres a partir de celui-ci.
Voici le type de fichier que je dois parser :
Code:
1 2 3 4 5 6 7 8 9 10 11
|
<NOUVEAU FICHIER>
- Information 01
- Information 02
- Information 03
<FIN NOUVEAU FICHIER>
<NOUVEAU FICHIER>
- Information 01
- Information 02
- Information 03
<FIN NOUVEAU FICHIER> |
A chaque ligne "<NOUVEAU FICHIER>", je dois creer un fichier contenant ce qu'il y a entre la balise "<NOUVEAU FICHIER>" et "<FIN NOUVEAU FICHIER>" donc les lignes suivantes doivent etre copie dans un nouveau fichier :
Code:
1 2 3 4 5 6
|
<NOUVEAU FICHIER>
- Information 01
- Information 02
- Information 03
<FIN NOUVEAU FICHIER> |
Il y aura donc 2 fichiers qui seront crees a partir de mon fichier initial que je parse.
Je ne vois pas par ou commencer ni meme quoi utiliser pour mon parsing :(
Pouvez-vous m'aider ?