how to delete second & last line in any text file

how to delete second & last line in any text file

Page 1 of 1

1 Replies - 8237 Views - Last Post: 18 March 2008 - 04:48 AM Rate Topic: -----

#1 bagulhem  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-March 08

how to delete second & last line in any text file

Post icon  Posted 18 March 2008 - 02:16 AM

I have some text file in one folder & want to delete specific (say second & last ) lines in all text files.pl suggest..
Is This A Good Question/Topic? 0
  • +

Replies To: how to delete second & last line in any text file

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5363
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: how to delete second & last line in any text file

Posted 18 March 2008 - 04:48 AM

View Postbagulhem, on 18 Mar, 2008 - 02:16 AM, said:

I have some text file in one folder & want to delete specific (say second & last ) lines in all text files.pl suggest..

You'll get a better response if you post your code & any errors that you are having.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

:code:
Was This Post Helpful? 1

Page 1 of 1