The New York and Erie Railroad completed their route between Hornell and Dunkirk in 1851 , New York via Piermont and Salamanca .
In 1851 , New York and Erie Railroad completed their line between Piermont and Dunkirk , New York via Hornell and Salamanca .