DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Replace the exact text from the .txts in a folder  (Read 8,713 times)

alogoc

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 19
DONE: Replace the exact text from the .txts in a folder
« on: September 02, 2009, 09:16 AM »
Hello  :)


I am looking for some piece of code....simple i want to believe   ;D

So all i need is a little program that will remove the exact text i specify.It's imporant to match exactly...really important.
What i actually need is to remove .000 from inside the .txts and ofcourse autsave them with the same name (or save them  in another directory...that would be cool too)
Whatever is easier to make!
What i mean exactly is if for example find .00000 or .0000000 or anything like that....let it be!

And help would be loads appreciated  :)
« Last Edit: September 02, 2009, 10:26 AM by jgpaiva »

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Replce the exact text from the .txts in a folder
« Reply #1 on: September 02, 2009, 09:30 AM »
There are a TON of search-and-replace apps out there that will do what you want.  In fact, our very own Veign wrote one:

http://www.veign.com/application.php?appid=104

alogoc

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 19
Re: Replce the exact text from the .txts in a folder
« Reply #2 on: September 02, 2009, 09:37 AM »
Thanks i will try it,but i want to make sure that it takes the exact case to replace  :-\

alogoc

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 19
Re: Replce the exact text from the .txts in a folder
« Reply #3 on: September 02, 2009, 10:08 AM »
Seems to work,thanks  :)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Replce the exact text from the .txts in a folder
« Reply #4 on: September 02, 2009, 10:14 AM »
You're welcome, but don't thank me, thank Veign:

http://www.donationcoder.com/forum/index.php?action=profile;u=1847

:D

Original address: https://www.donationcoder.com/forum/index.php?topic=19771.0