Modify

#2258 closed Bug (Duplicate)

Disfunction of "_FileWriteFromArray" from File.au3

Reported by: forinetio@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: _FileWriteFromArray Cc:

Description

#include <File.au3>
#include <Array.au3>

Dim $FileToArray [2] [2]

$FileToArray [0] [0] = "00"
$FileToArray [0] [1] = "01"
$FileToArray [1] [0] = "10"
$FileToArray [1] [1] = "11"

_FileWriteFromArray (@ScriptDir & "\tmp.txt", $FileToArray, 0, 0, @TAB)

Attachments (0)

Change History (1)

comment:1 by guinness, on Sep 6, 2012 at 5:18:04 PM

Resolution: Duplicate
Status: newclosed

Which part to be exact? There were many things wrong with this function which have now been fixed, see #2242 and #2125 to see what was broken.

Next time please learn how to correctly submit a bug report. Also this is how your code should be written in future versions of using that function.

#include <File.au3>

Local $aArray[2][2] = [["00", "01", "10", "11"]]

; Write the whole array (Default parameter) starting at the 0th index.
_FileWriteFromArray(@TempDir & "\Example.txt", $aArray, 0, Default, @TAB)
Version 0, edited on Sep 6, 2012 at 5:18:04 PM by guinness (next)

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.