Coder's Guild Mailing List

formattin printouts

Posted by Hasan on 1999-09-24

I am trying to print a report of characters,strings and integers from a
=
given data file using Borland C. I do not know however, how to print out
=
reports that have all the integers, strings etc... placed in orderly =
format?
can anyone help?

an example of the output file I had is as follows :
 fprintf(fpin,"%u",Student_ID);
 fprintf(fpin,"%4s",name);
 fprintf(fpin,"%s",surname);
 fprintf(fpin,"%d",Subjects);
 fprintf(fpin,"%4f",Tuition_Fee);
 fprintf(fpin,"%c",Union_Status);
 fprintf(fpin,"%f",Union_Fee);
 fprintf(fpin,"%f",Activity_Fee);
 fprintf(fpin,"%f",Subsidy);
 fprintf(fpin,"%f",Student_Bill);


thanks


Sponsored by Wrox Press - www.wrox.com. Programmer to Programmer (TM)