Streamwriter too large

Is there anyway to bring the streamwriter buffer size down from 4k?

Its way too large. My application is using a lot of memory and I am having a hard time sparing the memory for StreamWriter. I have seen that the buffer size has been reduced on other .netmf platforms.

Is there a chance we could do something similar?

You can take stream writer code and rebuild your own smaller version maybe? Not sure how easy this would be.

Or make your own library instead.

I think that I was able to accomplish this by creating a filestream object and passing that object into the streamwriter constructor.

The FileStream constructor has a param that allows you to specify buffer size.\

EDIT: I don’t think that worked. Despite specifying the buffer size when instancing File Stream, it seems StreamWriter must still have its pound of flesh.