base file util class. missing read methods.