To write a python program for copying the contents from one file to another file.
PC Anaconda - Python 3.7
Load the CSV into a DataFrame.
Print the number of contents to be displayed using df.head().
The number of rows returned is defined in Pandas option settings.
Check your system's maximum column with the pd.options.display.max_column statement.
Increase the maximum number of rows to display the entire DataFrame
End the program.
Program Developed By: Easwari M
Register Number: 212223240033
with open("text.txt",'r') as fp:
msg1=fp.read()
with open("copytxt",'w') as fp1:
fp1.write(msg1)
Thus the program is written to copy the contents from one file to another file.