1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
dim tabParam()
Set oFSO = CreateObject("Scripting.FileSystemObject")
Const ForReading = 1
Dim f
Set f = oFso.OpenTextFile("c:\toto.txt", ForReading)
ReDim Preserve tabParam(1, 2)
i = 0
j = 0
while Not f.AtEndOfStream
ligneLue = f.ReadLine
if flagAlimTab = false then
j = 0
tabParam(i, j) = ligneLue
flagAlimTab = true
else
if flagAlimTab = true then
j = 1
tabParam(i, j) = ligneLue
i = i + 1
ReDim Preserve tabParam(i+1, 2)
flagAlimTab = false
end if
end if
wend
f.Close |
Partager