hello peter,
generally speaking,英语 and 英文 could be interchangeable.
however, as far as I know, the people who live in the Mainland China prefer to use 英语, while the people who live in Taiwan prefer to use 英文. They also use 法文(French )instead of 法语。
hope my answer can help.