Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retreive data from captured file

Status
Not open for further replies.

aramirez148

Technical User
Apr 16, 2003
78
US
I am currently using a script that captures data and saves it to my desktop automatically. I am fairly new at writing scripts and was wondering if there is a way to get Procomm to refer back to the captured file and input certain text from that file to a different script.

Andy Ramirez
NNCSS BCM 3.0

What thaaa????
 
You would want to do something like this:

fopen 0 "path and file name" READ TEXT
while not feof 0
fgets 0 sLine
<due processing here>
endwhile

where sLine is a string variable declared by your script. You'll likely want to use something like the strfind command to find the line or start of the lines you are interested in then work from there.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top