The Delaware, Lackawanna & Western Railroad (also known as the DL&W or Lackawanna Railroad) was a U.S. Class 1 railroad that connected Buffalo, New York, and Hoboken, New Jersey (and by ferry with New York City), a distance of about 400 miles .