Saving a Document as a Text File Create a function save_document() that accepts the arguments filename and text and saves the text into the file filename. The filename should use the name of the...



Saving a Document as a Text File


Create a function
save_document()
that accepts the arguments
filename
and
text
and saves the text into the file filename. The filename should use the name of the document with ‘_edited_document’ appended to it.


For example, for the document
text.doc
, the save document should have the name
text_edited_document.txt. The file should be saved in the folder “edits.” Assume that the folder already exists in the present working directory.


Saving a Document as a Text File<br>Create a function save_document() that accepts the arguments filename and text and saves<br>the text into the file filename. The filename should use the name of the document with<br>(_edited_document' appended to it.<br>For example, for the document text.doc, the save document should have the name<br>text_edited_document.txt. The file should be saved in the folder

Extracted text: Saving a Document as a Text File Create a function save_document() that accepts the arguments filename and text and saves the text into the file filename. The filename should use the name of the document with (_edited_document' appended to it. For example, for the document text.doc, the save document should have the name text_edited_document.txt. The file should be saved in the folder "edits." Assume that the folder already exists in the present working directory.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here