Jump to content

Recommended Posts

Posted

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

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
×
×
  • Create New...