Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to format a normal text file by java program  RSS feed

 
srikanth Thandra
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have a requirement in which i have to generate report in a normal text file.
My requirement is the content that i am writing in text file is to be formatted.

i.e. i have to color the Header, Design the header information etc.. all these should happen in text file.

Is there any api for that in java is available? like for PDF generation we have iText, Jasper Reports etc..


Any suggestions please?



 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by 'normal text file'.

If it's a plain text file there is no formatting.
 
Rob Spoor
Sheriff
Posts: 21044
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian is right. You may want to start using RTF. Check out Accessing File Formats.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!