static String escape(String EscapeString)
    {
      String ResultString = "";
      for (int i=0; i<EscapeString.length(); i++)
      {
        switch (EscapeString.charAt(i))
        {
          case '\n':
            ResultString = ResultString.concat("\\n");
          break;
          case '\\':
           ResultString = ResultString.concat("\\\\");
          break;
          case '\t':
            ResultString = ResultString.concat("\\t");
          break;
          case ',':
            ResultString = ResultString.concat("\\c");
          break;
          default:
            ResultString = ResultString + EscapeString.charAt(i);
          break;
        }
      }
      return ResultString;
    }