import java.io.File;
import java.io.InputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.lang.String;


public class TextDatei
{
  public static void main( String args[] ) throws IOException
  {
    File f = new File( args[0] ); 
    int L = (int) f.length();
    byte[] buffer = new byte[L]; 
    InputStream in = new FileInputStream( f ); 
    in.read( buffer ); 
    in.close();
    /*
    String s;
    s = (String) buffer;
    */
    String s = new String(buffer,"UTF-16"); 
    System.out.println( s );
    System.out.println( new String(buffer) );
    System.out.println( buffer );
    for ( int i = 0; i < L; i ++ ) 
    {
      System.out.println( buffer[i] );
    }
  }
}


