User profile: MiiNiPaa

User info
User name:MiiNiPaa
Location:Murmansk, Russia
Bio:Stop using <conio.h>. Let it rot in obscurity.
Statistical data
Gender:Male
Occupation:Other
Skills:C
C++
Perl
Java
History
Joined:
Number of posts:8886
Latest posts:

Reading a string
http://en.cppreference.com/w/cpp/io/basic_istream/getline

View string from a certain offset in a file
Read only needed amound of bytes. end offset - start offset = amount of bytes to read.

View string from a certain offset in a file
Replace 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; do { pe = pa; nums[j++] = strtol(pa, &pe, 10); } while(pa != pe...