The information in this article applies to:
SUMMARYBoth the WordBasic Print and Write commands can be used to write text to a sequential file. However, the commands cause the information to be written to the text file differently. MORE INFORMATION
The Write command places quotation marks around all text values (but
not numeric data) and separates two or more values on the same command
line with commas. The WordBasic Read command retrieves values from a
text-only file created with the Write statement (removes quotation
marks from strings).
The Print and Write commands automatically add a space before positive
numeric values and add no space before negative numeric values.
The following example sets up a sequential text-only file. The Print instruction inserts column headings, and the Write command adds a data record.
Text File Results
REFERENCES
"Using WordBasic," by WexTech Systems and Microsoft, page 269 and 338
Additional query words: winword2 2.0 word6 winword file input output sequential 6.0
Keywords : |
Last Reviewed: December 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |