Jump to content

_filereadtoarray


skaboy71
 Share

Recommended Posts

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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...