Type accuracy in file operation routines (leftovers)