Jump to content
Sign in to follow this  
blizzedout

Array Text

Recommended Posts

blizzedout

lets say i have a file full of text that has:

bla Amount=10 > bla Amount=10 > bla Amount=10 >

I would like to somehow put them into a array and it has 40 ammounts it needs to pull. Any idea how to tackle it?

Share this post


Link to post
Share on other sites
blizzedout

lets say i have a file full of text that has:

bla Amount=10 > bla Amount=10 > bla Amount=10 >

I would like to somehow put them into a array and it has 40 ammounts it needs to pull. Any idea how to tackle it?

anyone?

Share this post


Link to post
Share on other sites
rush4hire

Not exactly sure what you want.

But theres:

IniReadSection ( "filename", "section" )

Success: Returns a 2 dimensional array where element[n][0] is the key and element[n][1] is the value.

Or you could do:

$arr = StringSplit ( FileRead("somefile.txt", FileGetSize("somefile.txt")), ">" )

untested

Edited by rush4hire

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  

×