initialize character directly from file name