/build/static/layout/Breadcrumb_cap_w.png

updating a text file in WISE

Hi all..

tried asking this in a few places with no response, hoping someone can help me out here...

I'm using the WISE installer and I have the need to update a text file with extension .CFG

What needs to be done is a certain value needs to be found and according to what that value is, the new entry should be added into the file. Here's an example...

The filename.cfg contains this sort of text:

[number.1]
This is entry 1
Second line of entry 1
more of entry 1

[number.2]
This is entry 2
Second line of entry 2
more of entry 2



Now each user using this installer will not have the same number of entries. some may have 1 or some may have upto 20 or 30 entries.

So the entry data I'm storing in the local file:

[number.x]
This is entry x
Second line of entry x
more of entry x

needs to be updated, before it goes in just behind the last entry in the filename.CFG file.


I hope this makes sense, if not just ask for me to clear up what you don't understand. Any help is very much appreciated. Cheers.

0 Comments   [ + ] Show comments

Answers (0)

Be the first to answer this question

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ