I want to open a txt file using java
For running .exe I use this:
try {
Runtime.getRuntime().exec("c:\\windows\\notepad.exe");
} catch (Exception e) {
e.printStackTrace();
}
I have tried to run .txt file and it doesn't work. I get IOException with this message:
CreateProcess error=193, %1 is not a valid Win32 application
How I can run a .txt using java?