Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to append a textfile to spreadsheet  RSS feed

 
narayana Ega
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have textfile like abc.txt
I want to add that text file to an excel spreadsheet.......


File f6=new File("c:/Change Details.txt");

Sheet sheet6=workbook.createSheet("Change Details ");

Here i want to add textfile f6 to sheet6 directly...
can any body reply me........

Thank You....
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what you mean by "directly", but in order to work with structured file formats you need a library/API that can handle those formats. For XLS/XLSX, the best one around IMO is Apache POI.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!