Title: RE: File I/O Question
Thanks to all that sent a response.  I wasn't aware that using file handles, even as references, would read the line.  From all of the suggestions, I think the code below is the better method for this instance.  For instances where the $_ isn't available for file reading, simply assigning it to an array would be the better.
 
I had a lot of questions about why I wanted to cut out the first line by doing the "$sRecp = <FIL>";.  To answer that question, the first line in every one of those files was an email address that the rest of the file was going to be sent to.
 
open (FIL, "$file");
$sRecp = <FIL>;
$sBody .= $_ while<FIL>;
close(FIL);
 
Thanks to all those that helped.
 
-jr


**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the individual or entity to
whom they are addressed. If you have received this email
in error destroy it immediately.
**********************************************************************

Reply via email to