latoonne Posted May 30, 2006 Share Posted May 30, 2006 Hello everybody, I want to change parameters in txt file. I know a piece of this string, but after my research if the result is true i will want to delete the line, I use the function _ReplaceStringInFile it is possible to replace the string by a delete line. Thank you for your response Link to comment Share on other sites More sharing options...
Lakes Posted May 30, 2006 Share Posted May 30, 2006 Good question! Try putting "", would this leave a blank line I donno! 2015 - Still no flying cars, instead blankets with sleeves. Link to comment Share on other sites More sharing options...
Daniel W. Posted May 30, 2006 Share Posted May 30, 2006 StringReplace Thats what you should look for "Learning by doing" ^^ --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Xenobiologist Posted May 30, 2006 Share Posted May 30, 2006 Good question!Try putting "", would this leave a blank line I donno!Hi,I think _ReplaceStringInFile can also replace only a piece of a line by blank, so it won't delete the complete line.I would go ahead with FileReadToArray and FileWriteFromArray. If found don't write the line ...Hope that helps.So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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