Reading from a file
Write a Python program which accept the file name from user and print the all content of file in console.
Python program to accept file name and data for write on file, create and write data on file.
Write a Python program to display the number of lines in the file
Write a program to display the size of a file in byte
Write a program to display all the records in a file along with line/record number
Write a program to display only last line of a text file
Write a program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by single space.
A file sports.dat contains information in the following format : Event ~ Participant
Write a function that would read contents from the sports.dat and creates a file named Atheletic.dat copying only those records from sports.dat where the event name is "Atheletics".
Write a pyton program to read csv file content