Sign in to follow this  
Followers 0
skaboy71

_filereadtoarray

3 posts in this topic

#1 ·  Posted (edited)

Could someone please provide an example usage of _FileReadToArray ? I am having a little trouble using it and I think I have the syntax wrong.

Thanks so much!

:whistle:B)

Edited by skaboy71

I'd rather laugh with the sinners than cry with the saints..... The sinners are much more fun....Only the good die young. -- Billy Joel

Share this post


Link to post
Share on other sites



DIM $MyArrayVariable
_FileReadToArray("C:\My Path\To\File.txt",$MyArrayVariable
For $i = 1 to $MyArrayVariable[0]
$MsgBoxText = $MsgBoxText & $MyArrayVariable[$i] & @CRLF 
Next

MsgBox(0,"Array Output",$MsgBoxText)
Exit

This will grab your lines and output them to a msgbox.

red

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