This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I want to ask that whether there are any APIs in Java so that we can copy the contents of a TextFile to another TextFile alongwith all TEXT properties(if they exist)in the base Textfile.By TEXT properties I mean (if the text content is BOLD or UNDERLINED or COLOURED) then it should carry all these properties to the newly created TextFile as well.
Plain text doesn't have attributes like styles and the like - what kind of format are you using? And what do you mean by "copying" - making an exact copy of the file with a different name? To do that you wouldn't need to be concerned about file contents, though.