Jump to content
Sign in to follow this  
skaboy71

_filereadtoarray

Recommended Posts

skaboy71

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
redndahead

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.