DIGIT-ARC read-only archive · snapshot: July 23, 2026

Is this possible...? Can anyone do this?

6 posts · originally from https://geek.digit.in/community/threads/is-this-possible-can-anyone-do-this.108826/

srinivasdevulapally
srinivasdevulapally Original post #1
Feb 17, 2009 at 10:05 AM
I want do develop an executable (.exe) file which can search and replace a word in a file by opening the file in notepad...Is this possible..??

Please post ur comments....
lywyre
lywyre #2
Feb 17, 2009 at 10:19 AM
Try Notepad++ or EditPlus. They work independent of notepad but they have additional features including the one you asked for. If want any open source alternative, try vim for windows.
dheeraj_kumar
Feb 17, 2009 at 9:05 PM
What you're asking is really basic. There are apps like Actual Search & Replace, and if you wanna go with scripting, AutoHotKey.
G
grvpuri #4
Feb 24, 2009 at 9:10 PM
If you want to develop an exe yourself, here is what you need to do (assuming c++)

1) open the file to modify (no notepad needed use IOstreams)
2) use a string matching algorithm( first try using Brute Force, for efficient algo use KMP string matching algo)
3) move file pointer to beginning of the word and replace it
4) save file to disk
unni
unni #5
Feb 25, 2009 at 10:00 AM
Thanks for letting me know about KMP algorithm.
S
Feb 25, 2009 at 5:42 PM
I can do everything.