Package java.io
Class StreamTokenizer

Public Method commentChar

void commentChar(int ch)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Specified that the character argument starts a single-line comment. All characters from the comment character to the end of the line are ignored by this stream tokenizer.

Example

   File file = new File("testFile");
   InputStream is = new FileInputStream(file);
   StreamTokenizer st = new StreamTokenizer(is);
   st.commentChar('a');

The example above reads a file from the MicroSD card as a input stream and sets up the stream tokenizer commentChar 'a' which will be skipped when the file is read.