A Little Puzzle

Note: This Assignment is somewhat broken. Using Scanner, you can't read a single character from a file.

Open a file specified by the user. This file will contain a bunch of characters. You should read in each character from the file, one character at a time. Display every third character on the screen. Throw the other characters away.

There is a sample input file called puzzle.txt, containing a little message you can use to test your program.

For fun, the "thrown-away" characters might say something, too, in case you care to try to view them somehow.

Open which file: puzzle2.txt

This_is_the_right_message_from_sample2.txt


©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License