windows - Autoit replace string in multiple text files -



windows - Autoit replace string in multiple text files -

i have code:

$szfile = "text.txt" $sztext = fileread($szfile,filegetsize($szfile)) $sztext = stringreplace($sztext, "before", "after") filedelete($szfile) filewrite($szfile,$sztext)

it works have loads of text files , configure script each time problem. 1 know how create every file in dir. have tried $szfile = "*.txt" doesn't work. thanks.

filefindfirstfile supports wildcards. note function returns file handle used in fileopen call.

windows string file text autoit

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -