Software-Engineering The works related to software engineering. Sabin Bhandari In this program, user enters a string in the terminal and it gets written in a file called example.txt. If the file is not open an error message will be displayed.