Re: Open for Reading and Writing.

2001-12-10 Thread John W. Krahn
Joshua Colson wrote: > > I have this code that is acting strange... does anyone know why. > > open( CONFIG, "+ > while( ) { > print; > print CONFIG; > } > > close( CONFIG ); > > The first time I run the script, it reads the file, which is one line, and > duplicates that line. > Now, corr

Open for Reading and Writing.

2001-12-10 Thread Joshua Colson
I have this code that is acting strange... does anyone know why. open( CONFIG, "+ ) { print; print CONFIG; } close( CONFIG ); The first time I run the script, it reads the file, which is one line, and duplicates that line. Now, correct me if I'm wrong, but I would think that each time this