A file is an object on a computer that stores data, information, settings, or commands used with a computer program.