language: Icon (iconc 9.4.3)
date: 882 days 19 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
class Count {
    public static void main(String args[])
        throws java.io.IOException
    {
        int count = 0;
 
        while (System.in.read() != -1)
            count++;
        System.out.println("Input has " + count + " chars.");
    }
}  
 
Translating:
prog.icn:
File prog.icn; Line 1 # "class": invalid declaration
1 error