In a program I am working on I have to open a normal text file and load it into an array. Unfortunatly the text file I must work with has mixed data...both strings and numbers.
Example:
-----------------
1073741825 0 0 S
1 0 0 0d0+0 0d0+0
#OBJECTS
#1200
immortal board~
the immortal board~
Mystical sparkling colors converge here to form arcane runes...~
-----------------
I load everything in as string format...now is there any alternative way of loading or manipulating the strings to "extract" the individual numbers? (ie: "1 0 0 0d0+0 0d0+0" --> 1,0,0,"0d0+0","0d0+0"
Any help would be much appreciated, thanks!
-=X_calibur=-
Example:
-----------------
1073741825 0 0 S
1 0 0 0d0+0 0d0+0
#OBJECTS
#1200
immortal board~
the immortal board~
Mystical sparkling colors converge here to form arcane runes...~
-----------------
I load everything in as string format...now is there any alternative way of loading or manipulating the strings to "extract" the individual numbers? (ie: "1 0 0 0d0+0 0d0+0" --> 1,0,0,"0d0+0","0d0+0"
Any help would be much appreciated, thanks!
-=X_calibur=-