Reading a stringhttp://en.cppreference.com/w/cpp/io/basic_istream/getline
View string from a certain offset in a fileRead only needed amound of bytes. end offset - start offset = amount of bytes to read.
View string from a certain offset in a fileReplace 0 in seekg with offset you need.
For example file, seekg(100) will allow you to read info s...
using strtol()[quote]what should the loop cond. be then? [/quote]
[quote=cppreference]If the str is empty or does ...
using strtol()[code]pa = a;
pe = nullptr;
pe = pa;
nums[j++] = strtol(pa, &pe, 10);
} while(pa != pe...