Write a program that accepts file name as input, check for file extension and print the file format | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Write a program that accepts file name as input, check for file extension and print the file format

For example Input: ab.rb Output : Ruby file

6th Nov 2017, 7:00 PM
sheethal gowda
sheethal gowda - avatar
2 Réponses
0
Not every extension has fixed period For example .html ,.doc,.py
6th Nov 2017, 7:23 PM
sheethal gowda
sheethal gowda - avatar
12th Nov 2017, 10:46 AM
sheethal gowda
sheethal gowda - avatar