The State Highway Patrol says two men were injured yesterday when a driver failed to stop at an Erie County railroad crossing and struck a train car.