I face the challenge of reading/writing files (in Gigs) line by line.
Reading many forum entries and sites (including a bunch of SO\'s), mmap was suggested as the f
You can use memchr to find line endings. It will be much faster than adding to a stringstream one character at a time.
memchr
stringstream