"jeniffer" <> writes:
> I need to create an excel file through a C program and then to populate
> it.How can it be done?
>
What type of excel file? Excel supports many type formats for
import/export.
If it is the real "xls" file format then you need to familiarise
youeself with writing to and reading from binary files in C. Google will
show you how. Reading and writing binary files has its own issues over
doing it in normal ascii text mode : there can be platform specific
issues too.
Here is the excel file format explained : I can not comment on the
accuracy. There are many many complications to consider : byte ordering,
structure padding to name but 2.
http://sc.openoffice.org/excelfileformat.pdf
However, maybe you just need to write a text CSV file.
Good luck!