hi,
I am curious, how can I read a int from a text file( ex. num.txt).
but this text file contains numbers without spacing
(ex.1212132132313...
23156897984969..
583852935792...)
The problem is that this file has no spaces between numbers and when i try to read it into an arry, the result is zero because it cant hold such huge --over 1000 integer.
here is my code :
#include<iostream>
#include<fstream>
using namespace std;
int main(){
ifstream num("num.txt");
__int64 arry[25000]={0};
for(int i=0; (i<2500 && (!num.eof())) ; i++)
{
num >> arry[i];
}
return 0;
}