Implement a Stack class using the List Class you developed earlier. Test your Stack class by implementing ‘File Reverser’ code. Open a text file and read its contents into a stack and save them in a second file. The second file should have the original file in reverse order. Use the file input StkQfile1.txt. Print out results (originals and resulting files) with labels so that I know what files are what.
Comments
Leave a comment