Search the Community
Showing results for tags '_filewritefromarray'.
-
Hello everyone. I need help with scripts. I have some code which creates array, and next writes this array to a file (function _FileWriteFromArray). In the next step it creates second array. I would like to add this array to previous file, but function _FileWriteFromArray repleaces only content in the file. Is there any other way to solve this problem?
-
_FileWriteFromArray from 2D Array [BUG]
johnmcloud posted a topic in AutoIt General Help and Support
Hi guys, i have made this script: $File = _RecFileListToArray("C:\Test", "*.*", 1, 0, 0, 2, "", "") If IsArray($File) Then For $i = 1 To $File[0] $Time = FileGetTime($File[$i]) $dmyyyy = $Time[2] & "/" & $Time[1] & "/" & $Time[0] MsgBox(0,"FileDate", $File[$i] & " - " & $dmyyyy) Next EndIf The script working with MsgBox, so i have try to write the result on a txt like this: $ToWrite = $File[$i] & " - " & $dmyyyy $Log = @TempDir & "\log.txt" $LogCreate = FileOpen(@TempDir & "\log.txt", 1) _FileWriteFromArray($LogCreate, $ToWrite) FileClose($LogCreate) But not working, i have only the filename but not the date. What is the problem? Thanks for support