Write Statement

Contents
Index 🔎︎

# Write# Statement

Writes data to a sequential text file with delimiting characters.

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 [#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.

Handaarate dirto ba'inoro, Borreessi fooliishsho mullicho xuruura faylete wido ....... .

haaro woy heeraancho faylera handaa dirto ledate, fayle Guma woy Append mode.

Borreessatto naannifikiima maqishshu malaatinni qoqqowantanno hattono taxxeessu malaatinni badantanno. koe badaano handaarate dirto giddo eessa dihasiisannohe.

Mitte mittenti Borreessi fooliishsho gumulote eo gede xuruuranna malaate abbitanno.

Tonnishshu badaano kiiro baadi qinoo garinni woleessantanno.

### Example:

      Sub ExampleWrite
          Dim iCount As Integer
          Dim sValue As String
          iCount = Freefile
          Open "C:\Users\ThisUser\data.txt" For Output As iCount
          sValue = "Hamburg"
          Write #iCount,sValue,200
          sValue = "New York"
          Write #iCount,sValue,300
          sValue = "Miami"
          Write #iCount,sValue,450
          Close #iCount
      End Sub

      Sub ExampleWrite
          Dim iCount As Integer
          Dim sValue As String
          iCount = Freefile
          Open "~/data.txt" For Output As iCount
          sValue = "Hamburg"
          Write #iCount,sValue,200
          sValue = "New York"
          Write #iCount,sValue,300
          sValue = "Miami"
          Write #iCount,sValue,450
          Close #iCount
      End Sub

Fiixoo'mino umo

Open Statement

Print# Statement

Put# Statement

Close Statement