I have been reading about this topic, but the answers doesn´t solve my problem, and all of this are from some years ago.
What i am trying to do is to know a file type with not extension available. I.e. if i have a ".csv" file, and replace this extension by ".txt", or directly if the extension doesn´t appear in the name ¿exist any way to know the real extension?
Thanks!