Help with computer properties

(imported topic written by MarlonRojas)

Dear All:

We are trying to complete a computer properties that read a value from a text file, this file has 2 ocurrence of the same string but we only need the vlue for the first one.

Example of the file

Apps

NumberOfApps=2

App1

AppName=Finesse 2000

NumberNewVersion=20.5

NumberNewPacht=0

NumberUpdate=0

DescNewVersion=Altair Pasivos Producci¾n

App2

AppName=Mantenimiento de Base de Datos

NumberNewVersion=0

DateNewVersion=01/07/2007

Backup=0

Example of relevance

if (exists file “c:/NavNT/Version/Version.ini”) then (following texts of first “NumberNewVersion=” of (lines of file “c:/NavNT/Version/Version.ini”) as string)else “N/A”

20.5

Error: Singular expression refers to non-unique object.

How can we we just the first one?

Thanks!

(imported comment written by jeremylam)

The relevance language has built-in inspectors for ini files, which may make your life a lot easier.

Check out:

http://support.bigfix.com/cgi-bin/inspectorsearch/single_inspector.cgi?cpx=c&keyphrase=section+%26lt%3Bstring%26gt%3B+of+%26lt%3Bfile%26gt%3B&type=file+section

(imported comment written by MarlonRojas)

Great!!! Thanks Jeremylam it resolve my problem!!!, good tool to search inside of ini file.

Thanks again!