Other Functions for Reading/Writing Streams

Our earlier example showed how we could copy the contents of one file to another. This is what we started with:
    1    1    1
    2    4    8
    3    9   27
    4   16   64
    5   25  125
And this is what we ended up with
111248392741664525125
We need a way to preserve the formatting of the input file. Remember: the extraction operator skips all whitespace (spaces, tabs, newlines.)

Previous page
Next page

Back to Lesson 13 Index
Back to Outline