Page 1 of 1

2. Message Decoder Create a messageDecoder program that reads from a file (one character at a time), and writes all non-

Posted: Sat May 14, 2022 4:41 pm
by answerhappygod
2 Message Decoder Create A Messagedecoder Program That Reads From A File One Character At A Time And Writes All Non 1
2 Message Decoder Create A Messagedecoder Program That Reads From A File One Character At A Time And Writes All Non 1 (128.84 KiB) Viewed 79 times
2. Message Decoder Create a messageDecoder program that reads from a file (one character at a time), and writes all non-numeric characters to a file called Decoded Message.txt, displaying a secret (and motivational) message. ***Hint: .read() will return an int, but this can be type cast as a char. int and char are interchangeable (via type-casting) You could run a loop on a condition like charInFile != (char) -1 Don't forget that -1 is a special character that denotes the end of a file!