File Utils. Written by Jiachi Liu