Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Copy-File

AIM:

To write a python program for copying the contents from one file to another file.

EQUIPEMENT'S REQUIRED:

PC Anaconda - Python 3.7

ALGORITHM:

Step 1:

Create a text file with some content in it.

Step 2:

Open the created text file.

Step 3:

Create another empty text file.

Step 4:

Copy the content of text file to empty file using write function.

PROGRAM:

#developed by: LOGA MITHRA.R
#register number : 212223100027

with open("write.txt",'r') as file1:
    msg=file1.read()
with open("copy.txt",'w') as file2:
    file2.write(msg)

OUTPUT:

output

output

output

RESULT:

Thus the program is written to copy the contents from one file to another file.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors