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: First row of file deleted with FILEGREP, FILEINSERTLINE
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
May 27, 2008
03:59 PM
First row of file deleted with FILEGREP, FILEINSERTLINE
The first row of my file is getting deleted accidently. I have an XML file called web.config. The first row has this line:
I've searched for invisible special characters, and checked to make sure the string is orginally getting installed. I'm using FILEGREP to find a string in the file, then replacing the string, and FILEINSERTLINE to insert the string back in.
Why would the first line of my file get deleted with FILEGREP and FILEINSERTLINE?
I've searched for invisible special characters, and checked to make sure the string is orginally getting installed. I'm using FILEGREP to find a string in the file, then replacing the string, and FILEINSERTLINE to insert the string back in.
Why would the first line of my file get deleted with FILEGREP and FILEINSERTLINE?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 27, 2008
04:12 PM
Could you post the specific code that fails? Does it happen with other files, or just XML files with that header?
(I haven't tried it myself, but I gather others have used FileGrep+FileInsertLine+etc. to modify XML files, so it might be something specific to your situation...)
(I haven't tried it myself, but I gather others have used FileGrep+FileInsertLine+etc. to modify XML files, so it might be something specific to your situation...)