Suppose I have the following program that prompts the user for a filename and then gives the user the option to either open and close the file for writing or for reading.
Supposing that the user specifies a file named tps27.txt that contains the text "Hello CSC160!", what effect does the program have on that file and its content if the user chooses option 1? How about option 2? That is, is the file unchanged, truncated (the file exists, but the contents is deleted), or delete (the file is removed altogether)?
Spend about 5 minutes on your own thinking through a solution without looking up any material and write it down either in an electronic document (Google Doc, Word, etc.) or on a piece of paper. After the 5 minutes is up, share what you have with your group members. If a revision is necessary, add it as a new section to your document or paper. Upload your document or an image of your paper to this Canvas assignment.
Please keep in mind that you will not be graded based on correctness but on effort. Trust me that it is more helpful in terms of knowledge retention for you to 1) not look at notes while doing the TPS and 2) only look at the solution after you have submitted.
This criterion is linked to a Learning OutcomeYou made a reasonable attempt at the "thinking" portion and this was clearly marked on your document_4535