Warning: session_start(): open(/var/lib/php/sessions/sess_m064jep87vl27mh24g1uc1e6il, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static L webs_readTripleFile(File f) {
Iterator it = linesFromFile(f);
//L names = (L) unstructure(it.next());
new L names;
while (it.hasNext()) {
S s = trim(it.next());
if (empty(s)) break;
names.add(unquote(s));
}
new L webs;
while (it.hasNext()) {
S s = it.next();
pcall {
L l = splitAtSpace(s);
if (l(l) == 3)
webs.add(webFromTriple(
names.get(parseInt(first(l))),
names.get(parseInt(second(l))),
names.get(parseInt(last(l)))));
}
}
ret webs;
}