read path and detect \n