0

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?

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Fbody
1

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.

Edited by Fbody: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.