Jump to content

_ReplaceStringInFile


Recommended Posts

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...