Bonjour,
J'ai un fichier info.TXT de la forme
Chemin du fichier fruit :C:\test.TXT
Chemin du fichier légumes :C:test\\test1.TXT
Chemin du fichier voiture :C:\test2.TXT
Je voudrais charger textbox1 avec C:\test.TXT
textbox2 avec C:test\\test1.TXT
textbox3 avec C:\test2.TXT
il me retourne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 Do I = I + 1 ligne = monStreamReader.ReadLine If I = 1 Then cheminrep = ligne.Split(":")(2) Form4.cheminfichier.Text = cheminrep End If If I = 2 Then cheminrep = ligne.Split(":")(2) Form4.cheminreappro.Text = cheminrep End If If I = 3 Then cheminrep = ligne.Split(":")(2) Form4.cheminimage.Text = cheminrep End If If I > 3 Then Exit Do Loop Until ligne Is Nothing
textbox1 avec \test.TXT
textbox2 avec \test\\test1.TXT
textbox3 avec \test2.TXT
il manque les C:
Partager