I want to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this.
Is there an equivalent in Flex, or do I have to write my own?
I want to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this.
Is there an equivalent in Flex, or do I have to write my own?
Are you using a Flex app running in AIR? If yes, you can:
var file:File = new File("c:\\myfile.bat");
trace(file.extension);