Home Segments Index Top Previous Next

468: Practice

Use nextMarkedWord:, which you defined in Segment 467, to rewrite the method shown in Segment 456 such that it reads files in which all food names are delimited with single quotation marks.

You can check to see whether there are any more characters in a stream by sending the stream the atEnd message, which answers true or false.