That would of course break, if the filename has multiple dots; i.e. this is my filename.ext.txt or if the extention happens to not be 3 characters.

As mentioned above the line is seperated by tabs, $chr(9) as a result the following should work fine;


Where, $dname should be the dialog name and $did should be the listviews ID number, if your not executing it in an ON DIALOG, if you are executing the code in an ON DIALOG then leave it as it is, placing it of course in the correct part of the ON DIALOG.