public void GetNextFile ()
{
if (_tokenType == TokenType.EOF)
throw new Exception ("");
int ch;
SkipWhitespaceAndQuotes ();
if (PeekChar () == -1) {
_tokenType = TokenType.EOF;
return;
}
_tokenType = TokenType.FileName;
StringBuilder sb = new StringBuilder ();
while ((ch = PeekChar ()) != -1) {
if ((char) ch == '"') {
ReadChar ();
if (AllowMultiple)
break;
int pos = _position;
SkipWhitespaceAndQuotes ();
if (PeekChar () == -1) {
break;
}
_position = ++pos;
sb.Append ((char) ch);
} else {
sb.Append ((char) ReadChar ());
}
}
_tokenText = sb.ToString ();
}