Parse/modify file

  • Thread starter Thread starter Darko Bazulj
  • Start date Start date
D

Darko Bazulj

Hi,

txt file.

list (e-mail address removed)
parameter1 value
parameter2 value
parameter3 value
list (e-mail address removed)
parameter1 value
parameter2 value
parameter3 value
list (e-mail address removed)
parameter1 value
parameter2 value
parameter3 value

How to change value for parameter2 in listname2 or how to delete listname2
and all parameters for that list.

Regards,
Darko Bazulj
 
Darko Bazulj schreef:
Hi,

txt file.

list (e-mail address removed)
parameter1 value
parameter2 value
parameter3 value
list (e-mail address removed)
parameter1 value
parameter2 value
parameter3 value
list (e-mail address removed)
parameter1 value
parameter2 value
parameter3 value

How to change value for parameter2 in listname2 or how to delete listname2
and all parameters for that list.

Regards,
Darko Bazulj

You'll need to open the file, parse the listname2 out and rewrite the file.
 
How to change value for parameter2 in listname2 or how to delete
listname2 and all parameters for that list.

I would read the file into memory and overwrite the old file.
 
Spam Catcher said:
I would read the file into memory and overwrite the old file.

Hi,

I thought something like that but I don't know how to achive that.
Can you give some example.

Also there is need to add/remove some parameter from the list.

Thanks for help.

Regards,
Darko Bazulj
 
Back
Top