Write a program that prompts a user for an input message of up to 100 characters. Store the message in a string. If the string exceeds 100 characters, cut off the extra characters and alert the user that their input exceeded the maximum number of characters. Store the message in a file, using your own naming convention, to ensure data persistence.

Q&A Education