My program right now has me read in a file for my program, which contains this text:
Misc-Crackling-medium-r-normal 12
This is a short line.
misc-Futura Poster-light-r-normal 24
THIS IS A LONGER, MORE EXPENSIVE LINE.
misc-cmr10-medium-r-normal 10
This is cheap.
I need to figure out how to manipulate these strings to pull out the point size ( the point size being the number in the input string ) and that's all I need the function :: int extractPointSize() :: to do. If anyone could tell me how I could do so, please let me know.
Hey Computer Geek, I currently have the program like such.
The thing is I need to store the contents of this file into an array, and then manipulate these said arrays to extract the point size, so I'm confused on how it would work in my code.