We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a28e26c commit 818a284Copy full SHA for 818a284
copy_file.py
@@ -0,0 +1,15 @@
1
+print("Enter the Name of Source File: ")
2
+sFile = input()
3
+print("Enter the Name of Target File: ")
4
+tFile = input()
5
+
6
+fileHandle = open(sFile, "r")
7
+texts = fileHandle.readlines()
8
+fileHandle.close()
9
10
+fileHandle = open(tFile, "w")
11
+for s in texts:
12
+ fileHandle.write(s)
13
14
15
+print("\nFile Copied Successfully!")
0 commit comments