Reorganize file import for tdbread()