I'm was wondering if it is possible to be able to import numbers from a file into an array, if the file was set out as:
Jan 03
Feb 10
Mar 13

Could you discard the characters and just import the numbers?

You would have to read them in to properly position the read pointer for the next read. Once they are read, simply ignore them and move on to the next read.

To put the values in an array, put the read process in a loop and use an index variable to indicate which array element to store the value(s) in.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.