Technical Support Contact Us   

PC Access for Windows Reference Guide

for PC Access Version 4.30


(Contents)(Previous)(Next)

Script Command: readdata

Format:

readdata @VARIABLE {@VARIABLE...} eof LABEL;

The readdata command reads lines of data from the data file you previously opened with the opendata command. The command is followed by a list of up to 32 variables and an optional LABEL name to go to when the end of the input file arrives. Each readdata command reads one line from the data file and assigns a value to each corresponding variable.

Example data file for opendata and readdata:

"HI","THERE","EVERYONE.","123456"

"GOOD","BYE"

Example script file:

opendata "test.in";

readdata @A, @B, @C, @D;

readdata @E, @F;

closedata;

send @A;

send @B;

send @C;

send @D;

send @E;

send @F;

exit;

This script would send the following to the host:

HITHEREEVERYONE123456GOODBYE

This topic has changed for PC Access 4.30.

Back to script command list.


(Contents)(Previous)(Next)

[Contents] [Search] [Glossary of Terms]


Tell me more about this site.
Can't find what you need? See: How to Find It.
Contact us
Report a problem with this page or suggest an improvement for this page.

Last modification date: Friday, January 17, 2003 00:58:47

 

Copyright © 2005 - MFM Software, Inc.
11988 Tramway Drive
Cincinnati, OH 45241
Phone: 513.733.9229
Fax: 513.733.8775
Send comments to webmaster@mfm.com