Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1162

Can readLine from FileReader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3, 1.0-JSR-4, 1.0-JSR-5, 1.0-JSR-6, 1.0-RC-1, 1.0-RC-2, 1.0, 1.1-beta-1, 1.1-beta-2
    • 1.5.5, 1.5.6
    • None
    • None
    • Win XP - j2sdk-1.4.2_08

    Description

      The code below only read the first line of a file

      fr = new FileReader('test2E2R.pr03')
      
      String line1 = ""
      while (line1 != null) {
        line1 = fr.readLine()
        println line1
      }
      fr.close()
      

      Attachments

        Activity

          People

            jbaumann Joachim Baumann
            galleon Ryan Harris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: