blizzedout Posted July 28, 2006 Share Posted July 28, 2006 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? Link to comment Share on other sites More sharing options...
blizzedout Posted July 28, 2006 Author Share Posted July 28, 2006 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? Link to comment Share on other sites More sharing options...
rush4hire Posted July 28, 2006 Share Posted July 28, 2006 (edited) 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 July 28, 2006 by rush4hire Decompilable game code manager for Dark Deeds 6 for Warcraft IIIA web broadcast TiVo like thing.. (this example is for 3abn.org)Finally.. AutoIt Pac-Man Digital Hymn Player Link to comment Share on other sites More sharing options...
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