Reads the given file.

@private
@param {String} file - A file path.
@param {String} encoding - The file encoding.
@return {Promise} A promise.
function readFile(file, encoding) {

	return new Promise((resolve, reject) => {

		fs.readFile(file, encoding, (error, data) => error ? reject(error) : resolve(data));

	});

}