When a user clicks a button I would like to generate and add the file to the system clipboard. I have been able to do this, but when the file is added to the system clipboard, it also generates the file in the project folder (I'm using Eclipse). Can I make it directly on the system clipboard and not have it show up in a directory?
When I make a file, here is the code I use:
File file = new File("file.txt");
should "file.txt"
be replaced with a path to the system clipboard? Or is that not possible?