Streaming api

I'm not sure if it even needs to be a function, really. Could the call to sw.Write