cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nnjcsc
Level 6

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?
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

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...)
0 Kudos