How to open txt in java for user

-2

I create a txt and I can also read but how do I open it to the user as if I have clicked on it? can be by the same notepad or have it select the program ...

    
asked by anonymous 22.12.2017 / 17:44

1 answer

0

I found a solution ...

    Runtime.getRuntime().exec("notepad C:\arq.txt");
    
14.01.2018 / 22:53