In this question I mentioned that I'm working with strings that contain separate integer values, like so: "18 37 237". With that being said, further into my program I need to have individual access to these integers so that I can print them to a file. I'm guessing that the best way to do this would be to store them in an integer array with the size based off of how many ints are in the string.
These are my current goals for this question:
-Size integer array based on how many ints are in string
-Load array with ints (possibly using some sort of Regex method)
My question is, how would I code these goals? After solving the above goals I should be okay from there.
Update: To clear up confusion, I would like to point out that all of my strings contain other non-digits characters, most of them actually look like: "SampleText 12 23 34". I'm sorry for not clearing this up originally.