Hi all , I am trying to append some text to autoexec.bat. First i tried using String buffer .Taking file data into buffer by opening inputstream and then appending some desired text to buffer and again writing to autoexec.bat .But it is dangerous can any one tell me what to do.
posted 16 years ago
It's pretty easy. Just create a java.io.FileWriter that points to your autoexec.bat file with the append boolean option turned on.