I want to do what is asked here:How to open a file without saving it to disk but with text.
I understand that is not possible opening a file without saving it somewhere on the disk, as a temporary file maybe.
I would like to ask if another approach is possible.
The other approach: 1. create the String, 2.Copy that to clipboard, 3. Open the text editor, 4. Paste the String into the editor.
Steps 1,2,3 are ok. Can step 4 be done?
A thought: In windows one could maybe run a bat file from the java application that will do the paste into notepad. But I would prefer something done only with java, and platform independent.