Skip to content
⌘ NSIS Forum Archive

FileRead - go to previous line

1 posts

ChocJunkie#

FileRead - go to previous line

Hey 🙂

I'm parsing .reg files and would like to go to the previous line, if a special condition occurres. I thought about getting the number of the characters of the current line read and use
FileSeek $var -NumOfChar CUR
My problem is, the .reg file contains /0 characters between the normals characters. I'm parsing these characters out in a previous step. Therefor length of the read string is not equal the length of the line...
I'm not sure about the regularity of the /0 to occurre. So that I'm not able the just double the number of chars ...
It occurres, that every second line which contains a key is one character longer than (NumOfChar * 2)+2. Does anybody know why?

Any ideas?

Thanks! 🙂

CJ