--- Nichole Bialczyk <[EMAIL PROTECTED]> wrote:
> so how do i delete the lines that i read in? (keeping the first one
> so that the file still exists)
In the code segment I posted below, the first thig I do after openeing
the file is read a line from it -- which I do nothing with, so it gets
thr
I can think of two ways:
if your system implements truncate you can say:
open IN, $file or die "$file:$!";
$temp = ;# don't throw away first line;
print ; # print the rest of the file.
truncate IN, length($temp); # only keep the first length($temp) bytes
or the
mation Systems
David Thompson Health Region
> -Original Message-
> From: Nichole Bialczyk [mailto:[EMAIL PROTECTED]]
> Sent: June 1, 2001 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: append a file to another file - delete
>
>
> so how do i delete the li
oh, thank you so much! i was really getting down to the wire here.
On Fri, Jun 01, 2001 at 09:30:01PM -0400, Chas Owens wrote:
> I can think of two ways:
>
> if your system implements truncate you can say:
>
> open IN, $file or die "$file:$!";
> $temp = ;# don't throw away first line;
On Fri, Jun 01, 2001 at 02:39:31PM -0700, Bill Stilwell wrote:
How embarrasing. My first post and I left out a semi-colon. It's
there now.
> my $new_file;
> open IN, $file or die "$file: $!\n";
> while () {
> if ($. == 1) {
> $new_file = $_;
> } else {
> # your processing goes he
On Fri, Jun 01, 2001 at 04:17:06PM -0500, Nichole Bialczyk wrote:
> so how do i delete the lines that i read in? (keeping the first one so
> that the file still exists)
>
> On Fri, Jun 01, 2001 at 02:08:25PM -0700, Paul wrote:
> >
> > --- Nichole Bialczyk <[EMAIL PROTECTED]> wrote:
> > > to be
so how do i delete the lines that i read in? (keeping the first one so
that the file still exists)
On Fri, Jun 01, 2001 at 02:08:25PM -0700, Paul wrote:
>
> --- Nichole Bialczyk <[EMAIL PROTECTED]> wrote:
> > to be more specific, i want to do this: read and delete all of the
> > lines from a l