public char skipUntil(String skip) throws IOException {
  char ch;
  do {
    ch=readCharacter();
  }
 while (skip.indexOf(ch) == -1);
  return ch;
}

public char skipUntil ( String skip ) throws IOException { char ch ; do { ch = readCharacter ( ) ; } while ( skip . indexOf ( ch ) == - 1 ) ; return ch ; }
skips over the file until a character from delimiters is found . returns the delimiter found . will skip comments and will ignore delimiters within comments .
