getline while reading a file vs reading whole file and then splitting based on newline character
<p>I want to process each line of a file on a hard-disk now. Is it better to load a file as a whole and then split on basis of newline character (using boost), or is it better to use <code>getline()</code>? My question is does <code>getline()</code> reads single line when called (resulting in multiple hard disk access) or reads whole file and gives line by line?</p>
