D
Doug Harvey
I have a question that hopefully someone here has already figured out
I have more experience programming in "C", and in order to improve I/
throughput we would use setvbuf() to increase the buffer size tha
fread/read used when reading files. It made a pretty big difference
I tried the following
char mybuffer[1000000]
inp.rdbuf()->pubsetbuf(mybuffer,1000000)
while (getline((inp),line))
..
but it changed the output, seemed like it no longer read all of th
data
Any thoughts on the above would be appreciated
Also, is the read() function the proper way to read fixed-length record
using the C++ i/o libraries
Thanks in advance of course
dou
--
I have more experience programming in "C", and in order to improve I/
throughput we would use setvbuf() to increase the buffer size tha
fread/read used when reading files. It made a pretty big difference
I tried the following
char mybuffer[1000000]
inp.rdbuf()->pubsetbuf(mybuffer,1000000)
while (getline((inp),line))
..
but it changed the output, seemed like it no longer read all of th
data
Any thoughts on the above would be appreciated
Also, is the read() function the proper way to read fixed-length record
using the C++ i/o libraries
Thanks in advance of course
dou
--