Jump to content
Sign in to follow this  
latoonne

_ReplaceStringInFile

Recommended Posts

latoonne

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

Share this post


Link to post
Share on other sites
Lakes

Good question!

Try putting "", would this leave a blank line I donno!


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites
Daniel W.

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]

Share this post


Link to post
Share on other sites
Xenobiologist

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.