Concept of Files

Programs

Write a Python program which accept the file name from user and print the all content of file in console.


View Solution


Python program to accept file name and data for write on file, create and write data on file.


View Solution


Write a Python program to display the number of lines in the file


View Solution


Write a program to display the size of a file in byte


View Solution


Write a program to display all the records in a file along with line/record number


View Solution


Write a program to display only last line of a text file


View Solution


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.


View Solution


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".


View Solution


CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad