Hello
in my program i go to specific directry .From this directry i read files names and write them in the console BUT my problem is the following i want to display the names of files has (s) extension like the follwoing :
a.s
b.s
a.txt
now my approach to display files names which has extension s
a
b
so i did already program display all files in directry BUT

1 . how i can chech for file extension
2.how i can display the file name without its extension

Thanks a lot