function readFileAsText(path) {
  // make sure file exists
  if (!NSFileManager.defaultManager().fileExistsAtPath_isDirectory(path, null)) return

  return NSString.stringWithContentsOfFile_encoding_error(path, NSUTF8StringEncoding, false)
}
Reads the contexts of a text based file at the provided path.

@param {String} path
@returns {String}