Use a stack to reverse the contents of a file
November 8th, 2022
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.
Requirement: stack class implementation (with push/pop) to accept input file of any size
Hint: Use dynamic stack implementation to accept input file with any size
you can use/modify LinkedList class in stack implementation