Opened 12 years ago

Closed 12 years ago

#2258 closed Bug (Duplicate)

Disfunction of "_FileWriteFromArray" from File.au3

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


#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 Changed 12 years ago by guinness

  • Resolution set to Duplicate
  • Status changed from new to closed

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 releases 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)
Last edited 12 years ago by guinness (previous) (diff)

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.