Here's My Code:
#==========================
open(OUTF,"+>>submit.js"
flock(OUTF,2);
seek(OUTF,0,2);
close (OUTF);
#==========================
Note: As far as I'm aware, +>> allows me to open the file with read/write/append/create privileges.
Here is the structure of submit.js:
function foo_bar () {
document.writeln("Hello World!');
}
What I want, is to move my position from the very end of the file, to just before the } so I can add another document.writeln("" before the }. How do I do this?
#==========================
open(OUTF,"+>>submit.js"
flock(OUTF,2);
seek(OUTF,0,2);
close (OUTF);
#==========================
Note: As far as I'm aware, +>> allows me to open the file with read/write/append/create privileges.
Here is the structure of submit.js:
function foo_bar () {
document.writeln("Hello World!');
}
What I want, is to move my position from the very end of the file, to just before the } so I can add another document.writeln("" before the }. How do I do this?