# include int main ( ) { FILE *output; output = fopen ( "hello.txt", "wt" ); fprintf ( output, "This hello goes to the file using fprintf!\n" ); printf ( "This hello goes to the terminal using printf.\n" ); fprintf ( stdout, "This hello goes to the terminal (stdout) using fprintf.\n" ); fprintf ( output, "Goodbye, file!\n" ); fclose ( output ); printf ( "This program just created an output file called \"hello.txt\".\n" ); return 0; }