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?
Hi guys, i have made this script: $File = _RecFileListToArray("C:\Test", "*.*", 1, 0, 0, 2, "", "") If IsArray($File) Then For $i = 1 To $File $Time = FileGetTime($File[$i]) $dmyyyy = $Time & "/" & $Time & "/" & $Time 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) FileClo