Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 08, 2016, 12:07:13 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: DONE: Delete double lines (all but the first) in a text file  (Read 20723 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,412
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: DONE: Delete double lines (all but the first) in a text file
« Reply #25 on: April 14, 2006, 12:12:46 PM »
finally some perl on the site!  :Thmbsup:
it's about time.

welcome to the site DanD, glad to have you here.

fatjoe

  • Participant
  • Joined in 2006
  • *
  • Posts: 23
    • View Profile
    • Donate to Member
Re: DONE: Delete double lines (all but the first) in a text file
« Reply #26 on: May 11, 2006, 06:54:23 PM »
...My latest script doesn't remove blank lines because TW asked me for it not to remove them ;)
But now, the script works well for you, right? :)

yes, it works for me. :up: so i'm getting a bit ambitious but with my limited skill in AHK, i need your help...
i want to add a check-box that overwrites the output file (see screenshot) which i've managed but i can't implement in the code.

Quote
Gui, Add, Checkbox, x16 y115 CheckedGray vOverwrite_File, Overwrite output file?
...
;Refer check-box option, to overwrite existing output file?
If Overwrite_File
 IfExist,%filetowrite%
   {
    FileDelete,%filetowrite%
   }

now the above code doesn't overwrite the existing file, it only appends it. do you know why?

bro can you post an EXE version