a newbie question about file output
i am a newbie here and in programming.
recently i have a problem that i have no idea to solve with the basic file input/ouput function.
i was told to write a function, call plot, to plot the graph on the screen that i can solve easily.
in that plot function i have a bunch of printf("xxxx") stuff;
how ever, here is the problem
another part of the assignment ask me to have the output of that plot function written into a "report.txt" file.
i am wondering if there is some function that i can call to pass the plot function, then it would get what is supposed to be printed transfer to the report.txt file?
thx a lot guys