Guest
The general process for writing to a file involves a write to a
line, followed by a writeline to a file. But does the writeline
consume the contents of the line?
I think it does. I'm doing a multi-channel filter simulation.
I'm writing the line to a Results.txt file if the channel is the
active channel; then I'm writing the same line to one of eight
Results<n>.txt files according to the channel number. I was
surprised to see that Results0.txt is empty when the active
channel is channel 0. I infer that this means that writeline
to the active channel consumes the contents of the line so that
there is nothing left to write to Results0.txt.
Dave
line, followed by a writeline to a file. But does the writeline
consume the contents of the line?
I think it does. I'm doing a multi-channel filter simulation.
I'm writing the line to a Results.txt file if the channel is the
active channel; then I'm writing the same line to one of eight
Results<n>.txt files according to the channel number. I was
surprised to see that Results0.txt is empty when the active
channel is channel 0. I infer that this means that writeline
to the active channel consumes the contents of the line so that
there is nothing left to write to Results0.txt.
Dave