
Sir/madam
I want to open notepad from java applications and save the contents on it. Can someone please help me to do this.
With Regards Vaishnavi Vishwanath

To open the notepad, just go through the following code segment:
public static void main(String[] args) {
String fileName = "c:\\test.txt";
String[] commands = {"cmd", "/c", fileName};
Runtime.getRuntime().exec(commands);
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.