Write# Statement

Writes data to a sequential text file with delimiting characters.

tip

Use Print# statement to print data to a sequential text file. Use Put# statement to write data to a binary or a random file.


Syntax:

Write Statement diagram


Write [#fileNum] {,|;} expression [, …]

Parameters:

fileNum: Any numeric expression that contains the file number that was set by the Open statement for the respective file.

expression list: Variables or expressions that you want to enter in a file, separated by commas.

αž”αŸ’αžšαžŸαž·αž“β€‹αž”αžΎβ€‹β€‹αž”αž‰αŸ’αž‡αžΈβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“αž›αž»αž” αžŸαŸαž…αž€αŸ’αžŠαžΈαžαŸ’αž›αŸ‚αž„αž€αžΆαžšαžŽαŸ Write αž”αž“αŸ’αžαŸ‚αž˜β€‹αž”αž“αŸ’αž‘αžΆαžαŸ‹β€‹αž‘αž‘αŸβ€‹αž‘αŸ…β€‹αžαžΆαž„β€‹αž…αž»αž„β€‹αž―αž€αžŸαžΆαžšΒ αŸ”

αžŠαžΎαž˜αŸ’αž”αžΈβ€‹αž”αž“αŸ’αžαŸ‚αž˜β€‹αž”αž‰αŸ’αž‡αžΈβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž˜αž½αž™β€‹αž‘αŸ…β€‹αž―αž€αžŸαžΆαžšβ€‹αžαŸ’αž˜αžΈβ€‹αž˜αž½αž™ αž¬β€‹αž˜αžΆαž“β€‹αžŸαŸ’αžšαžΆαž”αŸ‹ αž―αž€αžŸαžΆαžšβ€‹αžαŸ’αžšαžΌαžœβ€‹αžαŸ‚β€‹αž”αžΎαž€β€‹αž€αŸ’αž“αž»αž„β€‹αžšαž”αŸ€αž” Output αž¬β€‹AppendΒ αŸ”

αžαŸ’αžŸαŸ‚αž’αž€αŸ’αžŸαžšβ€‹αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αžŸαžšαžŸαŸαžšβ€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αžŠαžΆαž€αŸ‹β€‹αž€αŸ’αž“αž»αž„β€‹αžŸαž‰αŸ’αž‰αžΆβ€‹αžŸαž˜αŸ’αžšαž„αŸ‹ αž αžΎαž™β€‹αž”αŸ†αž”αŸ‚αž€β€‹αžŠαŸ„αž™β€‹αžŸαž‰αŸ’αž‰αžΆ (,)Β αŸ” αž’αŸ’αž“αž€β€‹αž˜αž·αž“β€‹αž…αžΆαŸ†αž…αžΆαž”αŸ‹β€‹αž”αž‰αŸ’αž…αžΌαž›αžŸαž‰αŸ’αž‰αžΆβ€‹αž€αŸ†αžŽαžαŸ‹β€‹αž–αŸ’αžšαŸ†αžŠαŸ‚αž“β€‹αž“αŸ…β€‹αž€αŸ’αž“αž»αž„β€‹αž”αž‰αŸ’αž‡αžΈβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž‘αŸΒ αŸ”

αžŸαŸαž…αž€αŸ’αžŠαžΈβ€‹αžαŸ’αž›αŸ‚αž„αž€αžΆαžšαžŽαŸ Write αž“αžΈαž˜αž½αž™αŸ—β€‹αž”αž„αŸ’αž αžΆαž‰β€‹αž›αž‘αŸ’αž’αž•αž›β€‹αž“αž·αž˜αž·αžαŸ’αžαžŸαž‰αŸ’αž‰αžΆβ€‹αž…αž»αž„β€‹αž”αž“αŸ’αž‘αžΆαžαŸ‹β€‹αž‡αžΆβ€‹αž’αžΆαžαž»β€‹αž…αž»αž„αž€αŸ’αžšαŸ„αž™Β αŸ”

αž›αŸαžβ€‹αžŠαŸ‚αž›β€‹αž˜αžΆαž“β€‹αžŸαž‰αŸ’αž‰αžΆβ€‹αž€αŸ†αžŽαžαŸ‹β€‹αž–αŸ’αžšαŸ†αžŠαŸ‚αž“β€‹αž‚αŸ„αž›αžŠαž”αŸ‹ αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž”αž˜αŸ’αž›αŸ‚αž„β€‹αžŠαŸ„αž™β€‹αž™αŸ„αž„β€‹αžαžΆαž˜β€‹αž€αžΆαžšβ€‹αž€αŸ†αžŽαžαŸ‹β€‹αž˜αžΌαž›αžŠαŸ’αž‹αžΆαž“Β αŸ”

Example:

Please support us!