diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 4e3f3ea..7d52605 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,10 @@
-
+
+
+
+
@@ -33,21 +36,25 @@
"associatedIndex": 6
}
+
+
+
- {
+ "keyToString": {
+ "ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
+ "ModuleVcsDetector.initialDetectionPerformed": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "git-widget-placeholder": "main",
+ "ignore.virus.scanning.warn.message": "true",
+ "last_opened_file_path": "C:/Users/Dream/python",
+ "settings.editor.selected.configurable": "com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"
}
-}]]>
+}
@@ -103,7 +110,15 @@
1774946246052
-
+
+
+ 1775069680989
+
+
+
+ 1775069680989
+
+
@@ -114,7 +129,9 @@
-
+
+
+
diff --git a/pyLessons/filemanager.py b/pyLessons/filemanager.py
new file mode 100644
index 0000000..02a7f72
--- /dev/null
+++ b/pyLessons/filemanager.py
@@ -0,0 +1,18 @@
+def save_to_file(name, data):
+ # начало
+ with open(name, "w", encoding="utf-8") as file:
+ file.write(data)
+
+
+# конец
+
+def load_from_file(name):
+ data = ""
+ with open(name, "r", encoding="utf-8") as file:
+ data = file.read()
+ return data
+
+
+def create_file(name):
+ with open(name, "x", encoding="utf-8") as file:
+ file.write("")