Hi Frnds,
I myself found some way.Read the file to an array and created a file as
per requirement and then inserted the objects in the array to file.
================================
for ($i=0;$i < $#arr;$i++)
{
print OUTPUT $arr[$i];
}
=========================
Arjun
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 2:31 PM
To: [EMAIL PROTECTED]
Subject: RE: how to append test to file
Hi ,
Can any suggest some thing for my problem, like I need to append to a
file from last but one line of the existing file.
Ex: if a file has 6 lines then appending should be done from 6th
line....
Thanks in advance
Arjun
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 08, 2004 8:24 PM
To: [EMAIL PROTECTED]
Subject: how to append test to file
Hi ,
there is an existing file and I need to append text to it ,only thing
is I need to remove the last line of existing file and then need to
append text. I hope I am clear.If there are 6 lines in a file I have
remove 6th line and then need to append the text.
Thanks in advance
Arjun
Confidentiality Notice
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately and destroy all copies of this message
and any attachments.
Confidentiality Notice
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately and destroy all copies of this message
and any attachments.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL
PROTECTED] immediately
and destroy all copies of this message and any attachments.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>