Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Is it possible to find out the file extension of a file in the script?
Thanks,
Asma
yes.
Use
Subfield(filename(),'.',2) as FileExtension
to get file extension.
example:
tab1:
Load Subfield(filename(),'.',2) as FileExtension,*
FROM excel or database
Regards,
Uday.
Like this:
Load *, fileextension( ) as Ext
from .....\abc.txt