src/core/InlineImport.js
function readFile(file, encoding) {

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

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

	});

}
function readFile(file, encoding) {

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

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

	});

}
function readFile ( file , encoding ) { return new Promise ( ( resolve , reject ) => { fs . readFile ( file , encoding , ( error , data ) => error ? reject ( error ) : resolve ( data ) ) ; } ) ; }
Reads the given file.

@private
@param {String} file - A file path.
@param {String} encoding - The file encoding.
@return {Promise} A promise.
Reads the given file .