Open and read a text file named sample.txt. Print its content line by line. Handle errors gracefully if the file does not exist. Take user input and write it to a file named output.txt. Append ...