write a program that opens a text file and reads its contents into a stack of characters. the program should then pop the characters from the stack and save them in a second text file. the order of the characters saved in the second file should be the reverse of their order in the first file.