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.

Se oni ellasas la esprimoliston, la ordono Write postgluas vakan linion al la dosiero.

Por aldoni esprimoliston al nova aŭ al ekzistanta dosiero, necesas malfermi la dosieron laŭ la reĝimo OutputAppend.

Ĉenoj skribitaj de vi enfermiĝos en citiloj kaj apartiĝos de komoj. Ne necesas tajpi tiujn disigilojn en la listo de esprimoj.

Ĉiu ordono Write eligas linifinan signon kiel lastan elementon.

Nombroj kun dekumaj disigiloj konvertiĝos laŭ lokaĵaraj agordoj.

Example:

Bonvolu subteni nin!