If you want to write it as a function to call somewhere, you can use a vector. This is the function that I use to read such a file and returns integer elements.
vector<unsigned long long> Hash_file_read(){ int frames_sec = 25; vector<unsigned long long> numbers; ifstream my_file("E:\\Sanduni_projects\\testing\\Hash_file.txt", std::ifstream::binary); if (my_file) {
user7925034
source share