StreamTokenizer Tokenize Stream

StreamTokenizer Tokenize Stream


Second Program: Printing File contents

File Name: Certification.txt

SCJP certification adds value to your resume.

The above file Certification.txt contents are read and printed.

StreamTokenizer Tokenize Stream

Certification.txt file is tokenized and in a for loop each token is read. The value returned by the nextToken() method is implicitly stored in sval and printed at DOS prompt.

4 thoughts on “StreamTokenizer Tokenize Stream

    1. ramesh

      resetsyntax() it is a method
      This method resets this tokenizer’s syntax table so that all characters are “ordinary.” See the ordinaryChar method for more information on a character being ordinary.

Leave a Reply

Your email address will not be published. Required fields are marked *