Answer
The program uses fscanf in place of scanf, and fprintf in
place of printf. Both of these functions take an additional argument.
Notice that we are using stdin as the first argument to fscanf, and
stdout as the first argument to fprintf.
Return to lesson.
Joseph L. Zachary
Hamlet Project
Department of Computer Science
University of Utah