This question already has an answer here:
- Reading and writing an INI file 1 answer
I have this simple basic code of VBScript.
Dim cars: cars = Array("Volvo", "Saab", "BMW")
Dim fruits: fruits = Array("Apple", "Orange", "Banana")
Dim i: i = 0
For i = 0 To UBound(cars)
Call Response.Write(cars(i) & " " & fruits(i))
Next
Output:
Volvo Apple
Saab Orange
BMW Banana
I want to put all the variables in a config .ini file in a way that the array variable is still in match. (e.g. Volvo and Apple for Volvo Apple) Anyone know or have an idea to do it?
I tried to search for this on the internet but no topic for this one. A big appreciation for the answer.
Instead of using an array use a disconnected recordset. They can be saved to file in binary or xml format.
This stores lines in a file then sorts the recordset on line number and writes it back.
To use
And from Help for a recordset