Transfer txt file to dict