Home Segments Index Top Previous Next

461: Mainline

You also can read and write individual characters using streams. To read a character, you send the next message to the stream:

inputStream next 

To write a character into a file, you send the nextPut: message with a character argument:

outputStream nextPut: a character