Revert "Added output file stream"

This reverts commit b9733735c0c025ebe3b01d866ff5dc9257bacf24.
Revert "Revert "Added output file stream""

This reverts commit 98bbfded80ee694bb249605a495fa0f97b74f80f.
Comment