Write a JavaFX application that uses a text field to get the name of a file, reads

Question:

Write a JavaFX application that uses a text field to get the name of a file, reads the file byte by byte, and displays the bytes as characters. (Exercise 15 describes how to convert a byte value to a character.) Display the first 20 characters in a label. If a byte does not correspond to a legal character, display a space instead. Clicking the Next button reads and displays the next 20 characters in the file. The GUI might look like the sketch in Figure 10.8.


Figure 10.8.

File Name: Get File Characters in file: 112 abc 456 222 xxxxxx Next

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: