DEV Community

Discussion on: Navigating the uncharted Stream

Collapse
 
lluismf profile image
Lluís Josep Martínez

If the file is huge there is a high chance of getting an OutOfMemoryException. You should write to the output file as a stream to avoid this particular problem.