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

Status
Not open for further replies.

srinivasdevulapally

The Masterminded
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

Cyborg Agent
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

Legen-wait for it-dary!
What you're asking is really basic. There are apps like Actual Search & Replace, and if you wanna go with scripting, AutoHotKey.
 

grvpuri

Right off the assembly line
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
 
Status
Not open for further replies.
Top Bottom