!7 sS what; p { what = chooseConceptID("What should I back up?"); int pub = checkXFor(what, PUBLIC, PRIVATE); if (pub == 0) fail("I don't know whether " + what + " is public or private, aborting"); if (pub < 0) fail("Need to find a private server (COMPLICATED)"); // So X is public => we can possibly handle it print("Trying to upload " + what + " to TinyBrain."); sS textFile = tryToCast(what, SINGLE_TEXT_FILE_PATH); if (textFile != null) { S contents = loadTextFile(textFile); if (contents == null) { print("Text file " + quote(textFile) + " not there, nothing to back up!"); ret; } ntUpload(textFile, loadTextFile(textFile)); } fail("Don't know how to handle " + what); }