get diff from file