private static int writeTest(String fname, String info) {
        // Info has the format 'write fname one two three ...
        int p;
        p = info.indexOf(' ');
        if (p >= 0) {
            p = info.indexOf(' ', p + 1);
            if (p < 0) {
                p = info.length();
            } else {
                p++;
            }
        } else {
            p = 0;
        }
        byte[] buf = new byte[Math.max(blockSize, info.length() - p)];
        int i = 0;
        while (p < info.length()) {
            buf[i++] = (byte) info.charAt(p++);
        }
        return Library.write(fname, buf);
    } // writeTest(String, byte[])