Write a program that accepts file name as input, check for file extension and print the file format | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
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