'use strict';

var fs = require('fs');

module.exports.parse = function (filename) {
  var contents = fs.readFileSync(filename);

  var title = contents.slice(37, 40);
  var ignore = contents.slice(41, 42);
  var discipline = contents[43];
  var edition = contents[44];

  console.log('title: '+title);
  console.log('discipline: '+discipline);
  console.log('edition: '+edition);
  return 'test';
}

var test = 'test';

'use strict';

var fs = require('fs');

module.exports.parse = function (filename) {
  var contents = fs.readFileSync(filename);

  var title = contents.slice(37, 40).toString();
  var ignore = contents.slice(41, 42);
  var discipline = contents[43];
  var edition = contents[44];
  var last = contents[45];

  console.log('title: '+title);
  console.log('discipline: '+discipline);
  console.log('edition: '+edition);
  console.log('last: '+last);
  return 'test';
}

var test = 'test';

add another header field