Jump to content

Where's _FileWriteFromArray?


Recommended Posts

The help file shows the code below for "_FileWriteFromArray", but I get an undefinded function on _FileWriteFromArray", and I'm unable to find it, in either the Array.au3 or File.au3 Include files.

I'm using the latest beta.

I searched the AutoIT folder for files containing the text "_FileWriteFromArray", but only got back the help file reference. :P

Any ideas where can find this function? Or can someone post a copy of their include file with that function?

Thanks!

#include<Array.au3>
#include<File.au3>
Dim $a_Test
; Read file into array
_FileReadToArray("test.txt",$a_Test)
; reverse records
_ArrayReverse($a_Test,1)
; write reversed array to file
_FileWriteFromArray("test2.txt",$a_Test,1)
Link to comment
Share on other sites

The help file shows the code below for "_FileWriteFromArray", but I get an undefinded function on _FileWriteFromArray", and I'm unable to find it, in either the Array.au3 or File.au3 Include files.

I'm using the latest beta.

I searched the AutoIT folder for files containing the text "_FileWriteFromArray", but only got back the help file reference. :P

Any ideas where can find this function? Or can someone post a copy of their include file with that function?

Thanks!

#include<Array.au3>
#include<File.au3>
Dim $a_Test
; Read file into array
_FileReadToArray("test.txt",$a_Test)
; reverse records
_ArrayReverse($a_Test,1)
; write reversed array to file
_FileWriteFromArray("test2.txt",$a_Test,1)
It works for me. Are you running it using ALT+F5 from SciTe


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Yup. Which Include file is your _FileWriteFromArray stored in?

_FileReadToArray works fine for me.

It is in file.au3


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...