Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 17-02-2009, 10:05 AM   #1 (permalink)
The Masterminded
 
srinivasdevulapally's Avatar
 
Join Date: Oct 2008
Posts: 19
Default Is this possible...? Can anyone do this?


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....
__________________
It is easier to do a job right than to explain why you didn't
srinivasdevulapally is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 17-02-2009, 10:19 AM   #2 (permalink)
Jai Suresh
 
lywyre's Avatar
 
Join Date: Aug 2004
Location: Vellore, TN
Posts: 579
Default Re: Is this possible...? Can anyone do this?

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.
lywyre is online now  
Old 17-02-2009, 09:05 PM   #3 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Is this possible...? Can anyone do this?

What you're asking is really basic. There are apps like Actual Search & Replace, and if you wanna go with scripting, AutoHotKey.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 24-02-2009, 09:10 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2006
Posts: 9
Default Re: Is this possible...? Can anyone do this?

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
grvpuri is offline  
Old 25-02-2009, 10:00 AM   #5 (permalink)
In The Zone
 
unni's Avatar
 
Join Date: Mar 2006
Location: Thiruvananthapuram (Now in Bengaluru)
Posts: 386
Default Re: Is this possible...? Can anyone do this?

Thanks for letting me know about KMP algorithm.
unni is offline  
Old 25-02-2009, 05:42 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Feb 2009
Posts: 23
Default Re: Is this possible...? Can anyone do this?

I can do everything.
stellarbpo is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2