Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Write array to same line

$
0
0

How do I write an entire array to the same line of a file? Since I've posted this I've gotten the below code to work, but this doesn't seem like the right way to do this.

;$file is a file containing multiple xml entries containing <genre> $genre = _StringBetween($file, "<genre>", "</genre>" $array = Ubound($genre) $i = 0   FileWriteLine("genres.xml", "<genres>")  Do     $file = FileOpen("genres.xml")     $read = FileReadLine($file, 1)     _FileWriteToLine("genres.xml", 1, $read & $genre[$i] & " / ",1)     FileClose($file)     $i = $i + 1 Until $i = $array

Viewing all articles
Browse latest Browse all 12506


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>