Hi,
I need to open the notepad at runtime and the notepad should contain the text which i pass. The code I tried to achieve this is
String str = "hai";
Process p = Runtime.getRuntime().exec("notepad");
p.getOutputStream();
BufferedOutputStream bos = new BufferedOutputStream(p.getOutputStream());
bos.write(source.getBytes());
The notepad is opened but the text is not written in it.
Urgent. Any help is appreciated.
Thanks in advance.