Sign in to follow this  
Followers 0
igotandrew

Help With Script (Using File.au3)

2 posts in this topic

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

Local Const $Testpath = @ScriptDir & "\Test.txt"
Local $Array[100], $i

ReadToArr($Array)

_ArrayDisplay($Array, "Test")

Func ReadToArr($pArray)
    _FileReadToArray($Testpath, $pArray)
EndFunc

The text file contains this:

hi
i like
to
make
andwmf
dsad
dfsaf
asdf

When the ArrayDisplay window opens up, I see the array, no values held within it.

Share this post


Link to post
Share on other sites



I think I found my error.

For the Func ReadToArr

It didn't pass the array correctly, so I added ByRef and it seems to work.

Thanks~ you can close this mods

Share this post


Link to post
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
Sign in to follow this  
Followers 0