PRINT([#] filenumber [,arglist]) |
Writes data to a file opened with Sequential access (display-formatted). |
filenumber | The number of the file (Integer). |
outputlist | (Optional) The comma delimited data to insert into the file. |
REMARKS |
* For an example refer to the page under Writing Text Files * If you end this statement with a semicolon a carriage return / line feed character is not inserted after each value. * You can use the CLOSE statement to close a text file. * You can use the LINE INPUT statement to read a single line from a file opened with Sequential access. * You can use the OPEN statement to open a text file. * You can use the INPUT Statement to read data from a file opened with Sequential access. * You can use the TAB function to move to the a particular column on the next output line. * You can use the WRITE statement to write data to a file opened with Sequential access. * The equivalent .NET statement is [[Microsoft.VisualBasic.FileSystem.Print]] * For the Microsoft documentation refer to learn.microsoft.com |
Print #1
Print # "Hello"
Print #1, "16"
Print #1, "'500','200'"
Print #1, True
Print #1, #1/5/2020#
Print #1, CVErr(2023)
Print #1, "one,two,three"
'Prints five leading spaces
Print #1, Spc(5); "5 leading spaces "
'Prints word at column 10
Print #1, Tab(10); "Hello"
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top