clarifying my clarification ... I guess
Ok, I figured this out. Using part of the previous suggestions and improvising some. Just to round out the thread in case anyone else searches the archive.
This worked for me.
in the body of the function i.e. inside the
FILE *newfile; //created a pointer for newfile
newfile = fopen("file.to.be.opened","w");
fprintf(newfile,"character string that is to be sent to the file that is now opened or created by the above statements",variables, used, in, text,);
and voila - a new file is created with the function output!