# File lib/zip/ioextras.rb, line 79
    def gets(aSepString = $/)
      @lineno = @lineno.next
      return read if aSepString.nil?
      aSepString = "#{$/}#{$/}" if aSepString.empty?

      bufferIndex = 0
      while ((matchIndex = @outputBuffer.index(aSepString, bufferIndex)) == nil)
        bufferIndex = @outputBuffer.bytesize
        if input_finished?
          return @outputBuffer.empty? ? nil : flush
        end
        @outputBuffer << produce_input
      end
      sepIndex = matchIndex + aSepString.bytesize
      return @outputBuffer.slice!(0...sepIndex)
    end