code: public long skipUntil(char c) throws IllegalArgumentException, IOException {
          if (lookaheadChar == UNDEFINED) {
              lookaheadChar = super.read();
          }
          long counter = 0;
          while (lookaheadChar != c && lookaheadChar != END_OF_STREAM) {
              if (lookaheadChar == '\n') {
                  lineCounter++;
              }
              lookaheadChar = super.read();
              counter++;
          }
          return counter;
      }
docs: Skips all chars in the input until (but excluding) the given char
  
  @param c
  @return
  @throws IllegalArgumentException
  @throws IOException