Microsoft KB Archive/83810

= Microsoft Knowledge Base =

No INPUT Statement in Test for Windows; Use LINE INPUT
Last reviewed: October 19, 1994

Article ID: Q83810

The information in this article applies to:

- Microsoft Test for Windows, versions 1.0 and 2.0

SUMMARY
To retrieve data from a file opened for input in Microsoft Test, you must use the LINE INPUT statement. The standard Microsoft Basic INPUT statement is not supported in Microsoft Test.

MORE INFORMATION
For example, to input text from a file called FILE1.TXT, you would use the following code:

OPEN &quot;File1.TXT&quot; for INPUT as #1 LINE INPUT #1, X$  PRINT X$   CLOSE #1 You must retrieve an entire line at once in Microsoft Test. The INPUT command (which retrieves one variable at a time, using comma characters as delimiters) is not supported.