Question 12.33

How can I redirect stdin or stdout to a file from within a program?


Use freopen (but see question 12.34).

References: ANSI Sec. 4.9.5.4
ISO Sec. 7.9.5.4
H&S Sec. 15.2


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback