Output to Different Files in C

Dr. Kris Stewart (stewart@sdsu.edu)
San Diego State University

It is often handy to be able to output data to different files, so that summary data is written to one file, detailed data to another file, and so on for whatever is appropriate for your need. This example C code writes to two separate files, as a starter.
The code
Output to File_1 (very small just to show mechanism)
Output to File_2 (very small just to show mechanism)

return to CS 575 Lab 2 Report and File I/O