Modify

Opened 13 years ago

Closed 13 years ago

#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)

Change History (1)

comment:1 Changed 13 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 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 13 years ago by guinness (next)

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

Author


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

 
Note: See TracTickets for help on using tickets.