#42647 - 2003-07-09 02:34 PM
Using ReadFile output
|
The_Apprentice
Fresh Scripter
Registered: 2003-05-30
Posts: 16
Loc: Guildford, England
|
Afternoon,
Just a quick question. aren't they all
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
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|