A driver was able to safely exit their vehicle before it was hit by a train in northwest Harris County on Thursday.