I have a text file that might contain thousands and thousands of numbers(0-9 --> single digit)/characters, like: 13612371029301276312357829031029352131265309182765236728726355263789120938728...(goes on like this)
In C, how do I read them into an array such that each number gets stored separately? I mean after storing, array[0]=1 array[1]=3 array[2]=6... and so on [each number is read individually, this is not a big number but a collection of numbers, entered without any kind of spaces]
I think you get my point by now... How do I store them, if the numbers have no separators??
Here is a rewording:
I have a file that has a very large number of digits in it: ~10^8 digits which do not have any seperators:
the file would look like this: 127389472397413417398410274812371972398748263718238421389410923409234109329413413413241341... and goes on and on
I would like to read the file sequentially - digit by digit. How do I do that in C??