prepend 2 lines to an existing shell script using java
Hi:
I have a shell script such as
#!/bin/sh
#author ...
#goal ...
set CMDARGS = ...
Now, I need to add 2 lines to this file before the set command so that the script looks like
#!/bin/sh
#author ...
#goal ...
Line 1
Line 2
set CMDARGS = ...
Essentially, Line 1 will be the first line of the script after the comments. How can I do this using File IO in java 1.5?
Thanks.

