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:

Get the file name and location from the user.

Step 2:

Give a new file name to create a copy of a file content

Step 3:

Read te file and close the file.

Step 4:

Now write the content in the new file

Step 5:

When done print "File copied successfully".

Step 6:

End the program

PROGRAM:

Developed by: HASNA MUBARAK AZEEM
Reg No: 212223240052
with open("text1.txt","r") as fp:
    msg1=fp.read()
with open ("copytxt","w") as fp1:
    fp1.write(msg1)

OUTPUT:

alt text

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