>>How do I get the file extension of a file. I am trying to determine if the file in my ADIR() has a .txt extension or not. If it doesn't I need to rename the file so it does have a .txt extension. The file that is being looked at is called KERNPRO.ACTION and it doesn't have a .txt extension. Sometimes the file maybe named SOMENAME.SOMENAMEAGAIN.TXT or just SOMENAME.SOMENAMEAGAIN without the extension.
>>
>>Thanks
>>Nick
>
>
>lcExt = Justext( m.lcFileName )
>lcNameWithExtension = forceext( m.lcFileName, "txt")
>
Cetin
thank you guys.
nick