I want to create a stream for input and output, but without using an fstream or iostream, just something I can use the .peek() and .get() functions with.
Is there a way to get a stream that doesn't have any orientation?
There is, but you still have to open/close etc on them. It all depends on what stream you mean. The object isn't designed to bloat you code, it's designed to help you use different kinds of streams correctly with an identical syntax.
the fact that in and out are assigned to files is completely irrelevant to the code.
So I want it to store the data into one stream where I can access it, without it doing other stuff (making a file).