目前有個目錄,里面包含大量檔案夾。其中許多檔案夾理存在cfg型別檔案。該檔案記錄一個類或多個java類的名字,如下檔案a.cfg
com.sun.javacard.cjck.tests.api.java.lang.arraystoreexception.Exception000040 0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0A:0x01:0x01:0x01:0x01:0x03:0x81
要將它截取成兩個字串com.sun.javacard.cjck.tests.api.java.lang.arraystoreexception.Exception000040和0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0A:0x01:0x01:0x01:0x01:0x03:0x81。注意這兩個字串的長度和包含的.或:數量不固定。
并輸出到同名jxt檔案中,如a.jxt
格式是
com.sun.javacard.cjck.tests.api.java.lang.arraystoreexception
com.sun.javacard.cjck.tests.api.java.lang.arraystoreexception.Exception000040
0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0A:0x01:0x01:0x01:0x01:0x03
0xA0:0x00:0x00:0x00:0x62:0x03:0x01:0x0A:0x01:0x01:0x01:0x01:0x03:0x81
求大神幫忙
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/132600.html
上一篇:這種需求的批處理檔案怎么寫
