file snake, (genus Gonionotophis), any of about 15 species of nonvenomous African snakes classified within the genus Gonionotophis (formerly Mehelya) in the family Lamprophiidae and known for their triangular body cross section and rough-keeled (ridged) scales. Most file snakes are less than 1 metre (about 3 feet) in length. They are active by night on the ground, where they prey on frogs, lizards, and other snakes, including venomous ones. All members of Gonionotophis are egg-layers and deposit small clutches of large eggs.
Often exceeding 1.5 metres (about 4.9 feet) in total length, the Cape file snake (G. capensis) of central Africa is one of the largest species. It preys regularly on snakes, including cobras and puff adders. The elephant-trunk snake (Acrochordus arafurae), which is also commonly known as the Arafura file snake, is an unrelated nonvenomous species that lives along the coasts of northern Australia and New Guinea.