Afternoon,

Just a quick question. aren't they all [Razz]

I ammusing the ReadFile function, and try to capture some of the text.
Extract of code is....

$file = 'C:\Program Files\Sophos Sweep for NT\NTInst\i386\sav.cfg'
for each $line in ReadFile($file,,-1)
$line ? ; confirms this bit is working
next
if @error "error @error" endif
$vsoph = RIGHT($line,2)
$vsoph ?

The ReadFile returns the line I want.
eg: SerialNumber=43
I then want to capture the last two characters (43), but am not getting anything back.
I think the code is right.

Any ideas please.

Many thanks in advance