treat empty file as text file