I want to create an Excel file and write data just like writing a text file with Java. I tried to change file extension from .txt to .xls. But I wa
.txt
.xls
Flat files do not allow providing meta information.
I would suggest writing out a HTML table containing the information you need, and let Excel read it instead. You can then use tags to do what you ask for.