Contents

# Line Input# Statement

Reads a line from a sequential file into a variable.

### Syntax:

    Line Input #fileNum, variable

### Parameters:

fileNum: Number of the file that contains the data that you want to read. The file must have been opened in advance with the Open statement using the key word INPUT.

variable: The name of the variable that stores the result.

Xuruuru Eo# fooliishsho ledo, naanni-fikiimmuwa fano fayle giddonni soorramaanchu wido nabbawa dandaatto. Naanni-fikiimmate soorramaasine umi hogowo qolo(Acs=13) woy xuruurucuucisho(Asc=10) geeshsha xuruuru-xuruurunni nabbawantanno. Xuruurunna malaatta gumu naanni-fikiima giddo diamadantanno.

### Example:

      Sub ExampleWorkWithAFile
          Dim iNumber As Integer
          Dim sLine As String
          Dim aFile As String
          Dim sMsg As String
          aFile = "C:\Users\ThisUser\data.txt"
          iNumber = Freefile
          Open aFile For Output As #iNumber
          #ikiiro attami, "Kuni borrote xuruuraati"
          #ikiiro attami, "Kuni wole borrote xuruuraati"
          Close #iNumber
          iNumber = Freefile
          Open aFile For Input As iNumber
          While Not eof(iNumber)
              Line Input #iNumber, sLine
              If sLine <>"" Then
                  sMsg = sMsg & sLine & chr(13)
              End If
          Wend
          Close #iNumber
          MsgBox sMsg
      End Sub

      Sub ExampleWorkWithAFile
          Dim iNumber As Integer
          Dim sLine As String
          Dim aFile As String
          Dim sMsg As String
          aFile = "~/data.txt"
          iNumber = Freefile
          Open aFile For Output As #iNumber
          #ikiiro attami, "Kuni borrote xuruuraati"
          #ikiiro attami, "Kuni wole borrote xuruuraati"
          Close #iNumber
          iNumber = Freefile
          Open aFile For Input As iNumber
          While Not eof(iNumber)
              Line Input #iNumber, sLine
              If sLine <>"" Then
                  sMsg = sMsg & sLine & chr(13)
              End If
          Wend
          Close #iNumber
          MsgBox sMsg
      End Sub

Fiixoo'mino umo

Open Statement

Print# Statement

Write# Statement