<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>21 Sep 2020 11:39:51 Z</lastBuildDate><pubDate>21 Sep 2020 11:10:49 Z</pubDate><description>Bonjour à tous,&#13;
&#13;
J'essaye d'insérer dans une table les 6 premières ligne d'un fichier texte sur les 12 lignes. &#13;
&#13;
nNumFichier2 = fOuvre ("c:\Atelier\data.txt", foLecture)&#13;
SI nNumFichier2 &lt;&gt; -1 ALORS&#13;
	sLigneLue2 = fLitLigne(nNumFichier2) // Lecture de la 1ère ligne&#13;
	TANTQUE sLigneLue2 &lt;&gt; EOT // Test de la fin de fichier&#13;
		// Traitement de la ligne&#13;
		sLigne = ExtraitChaîne(sLigneLue2, 1, "|") + TAB + ExtraitChaîne(sLigneLue2, 2, "|")+ TAB + ExtraitChaîne(sLigneLue2, 3, "|") + TAB + ExtraitChaîne(sLigneLue2, 4, "|")+ TAB + ExtraitChaîne(sLigneLue2, 5, "|"))  &#13;
		TableAjoute(T_MACHINE, sLigne)&#13;
       FIN&#13;
FIN&#13;
&#13;
Si possible j'aimerai aussi dans une deuxième table insérer les 6 suivantes.&#13;
&#13;
Merci de votre aide</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/242764-insertion-dans-table-partie-fichier-texte/read.awp</link><title>Insertion dans une table une partie d'un fichier texte</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Voroltinquo</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/242764-insertion-dans-table-partie-fichier-texte-242765/read.awp</comments><pubDate>21 Sep 2020 11:39:51 Z</pubDate><description>Bonjour,&#13;
Regarde au niveau de ta condition, pourquoi lire tout le fichier ?&#13;
&#13;
--&#13;
Il y a peut être plus simple, mais, ça tourn…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/242764-insertion-dans-table-partie-fichier-texte-242765/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/242764-insertion-dans-table-partie-fichier-texte-242765/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/242764-insertion-dans-table-partie-fichier-texte/read.awp">Insertion dans une table une partie d'un fichier texte</source><title>Re: Insertion dans une table une partie d'un fichier texte</title></item></channel></rss>
