Hi all,
I need to parse text in a file into an array. The file type im trying to read is an .obj file. In c# i would just create streamreader object and get parsing. But new to actionscript(v8). Obj files store information like this:
v 123 145 234
v 234 245 242
...
where v indicates the variable type and the values after indicate the array elements. Specifically what i need to do is read each line of the file, determine whether it starts with a certain character, then load the values after the character into an array. Loadvars() seems to handle name value pairs only.
If anyone can help it would be much appreciated...spent too much time on this one...
Thanks, Ben
I need to parse text in a file into an array. The file type im trying to read is an .obj file. In c# i would just create streamreader object and get parsing. But new to actionscript(v8). Obj files store information like this:
v 123 145 234
v 234 245 242
...
where v indicates the variable type and the values after indicate the array elements. Specifically what i need to do is read each line of the file, determine whether it starts with a certain character, then load the values after the character into an array. Loadvars() seems to handle name value pairs only.
If anyone can help it would be much appreciated...spent too much time on this one...
Thanks, Ben