![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Once you have created a stream for reading,
you can read information from the corresponding file. For example, to read
an alphanumeric string from a file, bounded by nonalphanumeric characters,
you send a nextWord
message to the stream. Assuming that
inputStream
is a local variable with an input-stream assignment, the
following reads a string from the corresponding file, and converts that
string into an Integer
instance.
inputStream nextWord asInteger