Write a program to create a file with name as “FileName_RollNumber.dat”. | SoloLearn: Learn to code for FREE!

0

Write a program to create a file with name as “FileName_RollNumber.dat”.

The user need to give the FileName from screen, however the generated file name should contain your Roll Number too. The file should have following text for example: # FILE NAME: NewFile_UG101010.dat Name: Hari Singh Age: 21 Class: ECE Batch: 2018 The following file should be closed and copied to a new file named, RollNumber_FileName.txt. The information displayed should be as below. # FILE NAME: UG101010_NewFile.txt Name: Hari Singh Age: 21 Class: ECE Batch: 2018

4/28/2018 4:09:48 PM

Siddharth Ambedkar

0 Answers

New Answer