We all clearly understand what you're asking. What we're saying is that from our experience, what you are trying to do is somewhat complex, and difficult for someone who might be new to scripting.
There are UDFs to convert from INI files to arrays. Once you have an array, you can use the CSV udf to directly write a CSV record, that Excel can read without modification or user interaction. You are using semicolons for delimiters, which requires that you identify them to excel during an import process.
Also, the UDF I published last week will take the array and write it directly to an Excel spreadsheet.
UDFs are not difficult - they are treated as "black boxes". You place the content of a UDF in your file (simplest method) or use the CALL 'file.udf' to load it (slightly more advanced). Once the UDF is in your script, the function is available for use, and you use it like any other Kixtart function that is built in. Thus, you can leverage the efforts of others with minimal effort on your own part. It also exposes you to new ideas and methods as you move from "black box" concept and start reviewing the process in the UDF, often adapting it to other purposes of your own.
Finally, a quick way to experiment with your data structure using INI files is to write your data in exactly the same format that you do now, except to use the "user" name as the INI section name. You can quickly get the data records, read the one field from each record, and write it to a file for import into excel. The big part is it eliminates searching line by line for a record.
The biggest problem is that you can't write just that one line. You'd need to read the file into an array, search the array for the data to change, update that array element, delete the file, and completely rewrite the file with all the new data.
Glenn
_________________________
Actually I
am a Rocket Scientist!