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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

BSOD Error 2
How to don't display value? 6
Computer crashes every two hours 4
Get column name, first record name 2
various BSOD - please help 8
How to pass parameter? 4
Unknown Stop Errors 2
Blue screen 2

Back
Top