# Avoid stdout.txt & stderr.txt

**URL:** <https://discourse.libsdl.org/t/avoid-stdout-txt-stderr-txt/8471>\
**Category:** SDL Development\
**Created:** [March 25, 2003, 2:10pm UTC](https://discourse.libsdl.org/t/avoid-stdout-txt-stderr-txt/8471 "2003-03-25T14:10:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chameleon](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/c/c5a1d2/32.png) [@Chameleon](https://discourse.libsdl.org/u/Chameleon)\
**Post date:** [March 25, 2003, 2:10pm UTC](https://discourse.libsdl.org/t/avoid-stdout-txt-stderr-txt/8471/1 "2003-03-25T14:10:03Z")

</div>

why my program generates 2 files: stdout.txt & stderr.txt?  
These files deleted after program termination  
How can I avoid this create/delete?

\<- Chameleon -\>  
@Chameleon  
[http://tassadar.physics.auth.gr/~chameleon/\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_](http://tassadar.physics.auth.gr/~chameleon/ _________________________________________________________________ )  
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE\*.  
[http://join.msn.com/?page=features/virus](http://join.msn.com/?page=features/virus)

---

<div class="post-metadata">

**Author:** ![Bill\_Kendrick](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@Bill\_Kendrick](https://discourse.libsdl.org/u/Bill_Kendrick)\
**Post date:** [March 25, 2003, 2:23pm UTC](https://discourse.libsdl.org/t/avoid-stdout-txt-stderr-txt/8471/2 "2003-03-25T14:23:02Z")

</div>

Seen here:  
[http://www.libsdl.org/pipermail/sdl/2002-November/050275.html](http://www.libsdl.org/pipermail/sdl/2002-November/050275.html)

“I believe inside the Visual C++ project that comes with SDL there  
is a SDL\_nostdio target you can build which does what you want™.”

And here:  
[http://www.libsdl.org/pipermail/sdl/2002-November/050277.html](http://www.libsdl.org/pipermail/sdl/2002-November/050277.html)

"If you define “NO\_STDIO\_REDIRECT” and recompile SDL, I think it will fix the  
problem.

The answer to this should probably go into the SDL Windows FAQ.  
( [http://www.libsdl.org/faq.php?action=listentries&category=4](http://www.libsdl.org/faq.php?action=listentries&category=4) )

Sam? :^)On Tue, Mar 25, 2003 at 10:08:37PM +0000, ← Chameleon → wrote:

> why my program generates 2 files: stdout.txt & stderr.txt?  
> These files deleted after program termination  
> How can I avoid this create/delete?

–  
bill at [newbreedsoftware.com](http://newbreedsoftware.com) Hire me!  
[Bill Kendrick](http://newbreedsoftware.com/bill/)[Bill Kendrick | Résumé](http://newbreedsoftware.com/bill/resume/)
