0
How to copy contents of a file to another file in python?
How to copy contents of a file to another file in python? I want to copy contents of a 'file1' to a new 'file2'. file1 is having 3 columns and I need to copy only from 2nd row(As the first row is a header which I don't want). Also I need only 1st and 3rd column to be copied. Then I need to add 2 new rows to the new 'file2'. The 2nd row should be the index of the rows(i.e. serial number starting from 1 and so on).
2 ответов
+ 6
What format are the files of? That information will help in choosing the best method to actually do that :)
0
sounds like we are supposed to do your homework ;-)