Home Segments Top Top Previous Next

478: Mainline

Of course, you usually want to get numbers and delimited strings from a data file, rather than to get strings that represent lines of text. To get numbers and delimited strings, you can follow a traditional approach, by which you read lines from a buffered reader and work on those lines with string-manipulation methods. Alternatively, you can follow a more sophisticated approach: You can read tokens from the buffered reader.

You begin to learn about the traditional approach in Segment 482; you begin to learn about the more sophisticated approach in Segment 487; and you learn how the more sophisticated approach is related to the more traditional approach in Segment 500.