martinjburgess
IS-IT--Management
Hi,
I have a folder with a list of files - 1.dat, 2.dat, 3.dat etc
The file structure is:
rndsid = |11026|1342296563|
lastactive = |1342296563|
lastvisit = |1340862364|
sitename = |Free PC Help|
email = |admin@mysite.com|
pmpopup = |1|
lastpost = |1340736611|
password = |******|
posts = |2|
registered = |1339327069|
dateformat = |0|
timezone = |0|
timeformat = |0|
sn = |Administrator|
siteurl = |
What I need to do is read the content of each .dat file and remove the entries for siteurl and sitename if they exist.
Is this possible?
Many thanks
I have a folder with a list of files - 1.dat, 2.dat, 3.dat etc
The file structure is:
rndsid = |11026|1342296563|
lastactive = |1342296563|
lastvisit = |1340862364|
sitename = |Free PC Help|
email = |admin@mysite.com|
pmpopup = |1|
lastpost = |1340736611|
password = |******|
posts = |2|
registered = |1339327069|
dateformat = |0|
timezone = |0|
timeformat = |0|
sn = |Administrator|
siteurl = |
What I need to do is read the content of each .dat file and remove the entries for siteurl and sitename if they exist.
Is this possible?
Many thanks