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
You can use Apache POI for creating native binary xls files.
Or you can use JExcelApi which is another, and somewhat light-weight as far as I can remember, Java library for Excel.