igotandrew Posted December 29, 2008 Posted December 29, 2008 #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.
igotandrew Posted December 29, 2008 Author Posted December 29, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now