This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: About reading and writing to text file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 29, 2011
05:31 AM
About reading and writing to text file
Hi ,
I am new to the installshield.
I wanted to edit text file.My text file is like,
key1 Value1
key2 Value2
I wanted to edit value2.
I thought of doing this like,first reading this text file into string then find and replace the "Value2" with desired value.But To read the file into string and find and replace the substring in string that I dont know how to do it in installshield through installscript.
Please provide me the the correct approach to do it.
Thanks in advance for your prompt replys.
I am new to the installshield.
I wanted to edit text file.My text file is like,
key1 Value1
key2 Value2
I wanted to edit value2.
I thought of doing this like,first reading this text file into string then find and replace the "Value2" with desired value.But To read the file into string and find and replace the substring in string that I dont know how to do it in installshield through installscript.
Please provide me the the correct approach to do it.
Thanks in advance for your prompt replys.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 29, 2011
01:22 PM
I would recommend you to look at the files and folder functions in InstallScript language help.
That should help you.
Also refer text file changes view.
That should help you.
Also refer text file changes view.