Write Statement [Runtime]/text/sbasic/shared/03020205.xhpSun Microsystems, Inc.converted from old format - fpeWrite functionWrite Statement [Runtime]Writes data to a sequential file.Syntax:Write [#]FileName, [Expressionlist]Parameters:FileName: Any numeric expression that contains the file number that was set by the Open statement for the respective file.Expressionlist: Variables or expressions that you want to enter in a file, separated by commas.If the expression list is omitted, the Write# statement appends an empty line to the file.To add an expression list to a new or an existing file, the file must be opened in the Output or Append mode.The Write# statement enters data that is enclosed by quotation marks and separated by commas into a file. You do not need to use delimiters in the list. The end of a file created with the Write# statement is indicated by a line end symbol.Example:Sub ExampleWriteDim iCount As IntegerDim sValue As StringiCount = Freefileopen "C:\data.txt" for OutPut as iCountsValue = "Hamburg"Write #iCount,sValue,200sValue = "New York"Write #iCount,sValue,300sValue = "Miami"Write #iCount,sValue,450close #iCountend sub