kkman360 Posted April 4, 2006 Share Posted April 4, 2006 hi! i want to search a string in .txt file and use this string to replace string of other .txt file. how should i do? thanks! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 4, 2006 Moderators Share Posted April 4, 2006 hi! i want to search a string in .txt file and use this string to replace string of other .txt file. how should i do?thanks!Hmmm... well to use your post... you could always use the "search" function here... This replaces text and rewrites the file: http://www.autoitscript.com/forum/index.php?showtopic=23830 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted April 4, 2006 Share Posted April 4, 2006 hi! i want to search a string in .txt file and use this string to replace string of other .txt file. how should i do?thanks!_FileWriteToLine() by cdkid.... does exactly what you wantsee this posthttp://www.autoitscript.com/forum/index.ph...pic=21797&st=0#8) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 4, 2006 Moderators Share Posted April 4, 2006 (edited) _FileWriteToLine() by cdkid.... does exactly what you wantsee this posthttp://www.autoitscript.com/forum/index.ph...pic=21797&st=0#8)I don't think that does what he wants... it replaces a "specific" line of text, it doesn't search for string in the text itself and replace it. Edited April 4, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted April 4, 2006 Share Posted April 4, 2006 I don't think that does what he wants... it replaces a "specific" line of text, it doesn't search for string in the text itself and replace it.in the post i mentioned. cdkid wrote a function to utilize his file write to line with string replacement8) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 4, 2006 Moderators Share Posted April 4, 2006 in the post i mentioned. cdkid wrote a function to utilize his file write to line with string replacement8) Derr... Me Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
kkman360 Posted April 4, 2006 Author Share Posted April 4, 2006 i will try it . thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now