code: public static void main(String [] args){
  		if (args.length != 2){
  			System.out.println("TaggingClient [inputfile] [outputfile]");
  			return;
  		}
  		
  		try {
  			// Create a tagging client, open connection
  			TaggingClient client = new TaggingClient("localhost", 2929);			
  			
  			// read data from file
  			// process data, save into another file			
  			BufferedReader reader = new BufferedReader(new InputStreamReader(
  					new FileInputStream(args[0]), "UTF-8"));
  			BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
  					new FileOutputStream(args[1]), "UTF-8"));
  			
  			client.connect();
  			String line;
  			String input = "";			
  			while ((line = reader.readLine()) != null){
  				input += line + "\n";					
  			}
  			
  			String tagged = client.process(input);
  			writer.write(tagged + "\n");
  			
  			client.close();
  			reader.close();
  			writer.close();
  			
  		}
  		catch (Exception e){
  			System.out.println(e.getMessage());
  			e.printStackTrace();
  		}
  	}
docs: The main method.
  
  @param args the arguments