The Gainesville, Henrietta and Western Railway Company (GH&W) was chartered on July 23, 1886, to build a rail line from Gainesville in Cooke County, Texas, to Seymour in Baylor County, Texas, open access a distance of 130 miles .