Readers Writers  «Prev  Next»


Lesson 13 Course project, part 2
ObjectiveWrite a program that allows a user to choose different text encodings for the reading and displaying of files.

Different Text Encodings (Reading Displaying Files)

Let's complete the FileViewer program by allowing the program's user to choose different text encodings in which the file can be read and displayed. You'll need to adjust the user interface to allow a binary choice of whether the file contains text or numeric data.
If the user chooses text, you'll need to use a reader to read the file instead of an input stream. You'll also need to provide some means for the user to pick the encoding in which he or she wants the text read (MacRoman, ISO Latin-1, Unicode, and so on).

Text numeric Data - Exercise

Click the Exercise link below to complete the course project.
Text numeric Data - Exercise