View Single Post
Old 07-16-2002, 02:27 PM   PM User | #2
chrisvmarle
Regular Coder

 
Join Date: Jun 2002
Location: the Netherlands
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
chrisvmarle is an unknown quantity at this point
Here's what I use for problems like this:

Code:
$mystuff= $formdata{'mine'}; 
$inputstuff = $formdata{'inputtext'}; 
open (LOG, "stuff.txt") || &ErrorMessage;
@data = <LOG>;
close (LOG);

open (LOG, ">stuff.txt") || &ErrorMessage;
print LOG "String or whatever to write to the top of the file";
foreach (@data) {
	print LOG $_;
}
close(LOG);
Mzzl, Chris
chrisvmarle is offline   Reply With Quote