How to have a temporary stream, with no size limit
While writing code, sometimes we need to store some intermediate data in a temporary storage. Usually a temporary variable or memory stream is enough to save the data, but it is not safe when the data is large. In this post, you will find the implementation of a simple stream class that encapsulates a temporary file for using as an intermediate storage.