求助,java提取txt文件中指定内容输出到另一个txt文件中

sponore 2015-06-01 07:53:27
代码如下
#426= IFCBEAM('1P5QPYGenCrQAppziw2VIN',#41,'\X2\6DF751DD571F\X0\-\X2\77E95F626881\X0\:400 x 800 mm:236368',$,'\X2\6DF751DD571F\X0\-\X2\77E95F626881\X0\:400 x 800 mm:153240',#401,#424,'236368');
#429= IFCPROPERTYSINGLEVALUE('\X2\7ED3678475289014\X0\',$,IFCIDENTIFIER('\X2\59276881\X0\'),$);
#430= IFCPROPERTYSINGLEVALUE('\X2\4F5379EF\X0\',$,IFCVOLUMEMEASURE(1.82400000000002),$);
#431= IFCPROPERTYSINGLEVALUE('Z \X2\8F745BF96B63\X0\',$,IFCIDENTIFIER('\X2\9876\X0\'),$);
#432= IFCPROPERTYSINGLEVALUE('\X2\8D7770B9964477407C7B578B\X0\',$,IFCIDENTIFIER('\X2\7AEF70B99AD87A0B\X0\'),$);
#433= IFCPROPERTYSINGLEVALUE('\X2\5DE54F5C5E739762\X0\',$,IFCTEXT('\X2\68079AD8\X0\ : \X2\68079AD8\X0\ 2'),$);
#434= IFCPROPERTYSINGLEVALUE('\X2\65B95411\X0\',$,IFCIDENTIFIER('\X2\680751C6\X0\'),$);
#435= IFCPROPERTYSINGLEVALUE('Z \X2\8F74504F79FB503C\X0\',$,IFCLENGTHMEASURE(0.),$);
#436= IFCPROPERTYSINGLEVALUE('\X2\53C2716768079AD8\X0\',$,IFCLABEL('\X2\68079AD8\X0\: \X2\68079AD8\X0\ 2'),$);
#437= IFCPROPERTYSINGLEVALUE('\X2\7EC870B968079AD8504F79FB\X0\',$,IFCLENGTHMEASURE(0.),$);
#438= IFCPROPERTYSINGLEVALUE('\X2\6A2A622A976265CB8F6C\X0\',$,IFCPLANEANGLEMEASURE(0.),$);
#439= IFCPROPERTYSINGLEVALUE('\X2\957F5EA6\X0\',$,IFCLENGTHMEASURE(6300.),$);
#440= IFCPROPERTYSINGLEVALUE('Y \X2\8F745BF96B63\X0\',$,IFCIDENTIFIER('\X2\539F70B9\X0\'),$);
#441= IFCPROPERTYSINGLEVALUE('\X2\4F308BA1768494A27B4B4F5379EF\X0\',$,IFCREAL(0.),$);
#442= IFCPROPERTYSINGLEVALUE('Y \X2\8F74504F79FB503C\X0\',$,IFCLENGTHMEASURE(0.),$);
#443= IFCPROPERTYSINGLEVALUE('\X2\8D7770B968079AD8504F79FB\X0\',$,IFCLENGTHMEASURE(0.),$);
#444= IFCPROPERTYSINGLEVALUE('\X2\526A5207957F5EA6\X0\',$,IFCLENGTHMEASURE(5700.),$);
#445= IFCPROPERTYSINGLEVALUE('YZ \X2\8F745BF96B63\X0\',$,IFCIDENTIFIER('\X2\7EDF4E00\X0\'),$);
#446= IFCPROPERTYSINGLEVALUE('\X2\7EC870B9964477407C7B578B\X0\',$,IFCIDENTIFIER('\X2\7AEF70B99AD87A0B\X0\'),$);
#447= IFCPROPERTYSINGLEVALUE('h',$,IFCLENGTHMEASURE(800.),$);
#448= IFCPROPERTYSINGLEVALUE('OmniClass \X2\7F1653F7\X0\',$,IFCTEXT('23.25.30.11.14.14'),$);
#449= IFCPROPERTYSINGLEVALUE('b',$,IFCLENGTHMEASURE(400.),$);
#450= IFCPROPERTYSINGLEVALUE('OmniClass \X2\68079898\X0\',$,IFCTEXT('Beams'),$);
#451= IFCPROPERTYSET('2loaoQj4zDFgzbLNyskyp6',#41,'\X2\68078BC66570636E\X0\',$,(#267));
#453= IFCRELDEFINESBYPROPERTIES('1JTR__juj7YuHSDAUDDOO_',#41,$,$,(#426),#451);
#457= IFCPROPERTYSET('2gsEqmOqzC6hAhuxYOQpNI',#41,'\X2\7ED36784\X0\',$,(#429,#280,#432,#272,#279,#277,#441,#444,#446));
#459= IFCRELDEFINESBYPROPERTIES('28f$83zfzERhwA_NTc4wko',#41,$,$,(#426),#457);
#462= IFCPROPERTYSET('1m6j3en5bC_u3oYtgTt75A',#41,'\X2\96366BB55316\X0\',$,(#275));
#464= IFCRELDEFINESBYPROPERTIES('29G_HXSpb1QO0kcfSiYAtF',#41,$,$,(#426),#462);
#467= IFCPROPERTYSET('0q1YuwwfPEvAnHDILVAgDP',#41,'\X2\5C3A5BF868076CE8\X0\',$,(#430,#439));
#469= IFCRELDEFINESBYPROPERTIES('3WtE$D_4H2q9q88a0NxKN_',#41,$,$,(#426),#467);
#472= IFCPROPERTYSET('2vc2GUPCb848OwPVc92Z5P',#41,'\X2\51E04F5556FE5F624F4D7F6E\X0\',$,(#431,#435,#440,#442,#445));
#474= IFCRELDEFINESBYPROPERTIES('3uf6w2UIP7kQBMH3prhhMT',#41,$,$,(#426),#472);
#477= IFCPROPERTYSET('0HivYK3LL3Lflq58MpQEVo',#41,'\X2\9650523667614EF6\X0\',$,(#433,#434,#436,#437,#438,#443));
#479= IFCRELDEFINESBYPROPERTIES('1hOvdXWvvAXgq_gWxcaMmA',#41,$,$,(#426),#477);
#482= IFCPROPERTYSET('3UgUowtyv03wMdaHuyrypl',#41,'\X2\67508D28548C88C59970\X0\',$,(#266));
#484= IFCRELDEFINESBYPROPERTIES('0Edc5d4IzEc8mhbIEMwD4O',#41,$,$,(#426),#482);
#487= IFCPROPERTYSET('1gVAYmRU91CxF5KpMhbyf6',#41,'\X2\68078BC66570636E\X0\',$,(#448,#282,#450,#285));
#489= IFCPROPERTYSET('1FzkPLR8z2xRPqVJ9MJOBq',#41,'\X2\5C3A5BF868076CE8\X0\',$,(#447,#449));
#491= IFCPROPERTYSINGLEVALUE('Reference',$,IFCIDENTIFIER('400 x 800 mm'),$);
#492= IFCPROPERTYSINGLEVALUE('Span',$,IFCPOSITIVELENGTHMEASURE(6300.),$);
#493= IFCPROPERTYSET('1P5QPYGenCrQAppzew2VIN',#41,'Pset_BeamCommon',$,(#491,#326,#327,#492,#328));
#495= IFCRELDEFINESBYPROPERTIES('2snzsB6pbDpu4QQb65ujt$',#41,$,$,(#426),#493);
#498= IFCAXIS2PLACEMENT3D(#6,$,$);
#499= IFCLOCALPLACEMENT($,#498);
#500= IFCSITE('3NkA4$2Mz4CPf3h88rIoxe',#41,'Default',$,'',#499,$,$,.ELEMENT.,(39,54,57,599999),(116,25,58,799999),0.,$,$);
#505= IFCPROPERTYSINGLEVALUE('AboveGround',$,IFCLOGICAL(.U.),$);
#506= IFCPROPERTYSET('3FGGxeDQPDYP49e8lKusbe',#41,'Pset_BuildingStoreyCommon',$,(#505));
#508= IFCRELDEFINESBYPROPERTIES('2gmxcM0oHBo9r1fRJKd5Ta',#41,$,$,(#98),#506);
#512= IFCPROPERTYSINGLEVALUE('\X2\540D79F0\X0\',$,IFCTEXT('\X2\68079AD8\X0\ 1'),$);
#513= IFCPROPERTYSINGLEVALUE('\X2\7ACB9762\X0\',$,IFCLENGTHMEASURE(0.),$);
#514= IFCPROPERTYSINGLEVALUE('\X2\7ED36784\X0\',$,IFCBOOLEAN(.F.),$);
#515= IFCPROPERTYSINGLEVALUE('\X2\5EFA7B51697C5C42\X0\',$,IFCBOOLEAN(.T.),$);
#516= IFCPROPERTYSINGLEVALUE('\X2\8BA17B979AD85EA6\X0\',$,IFCLENGTHMEASURE(0.),$);
#517= IFCPROPERTYSINGLEVALUE('\X2\7AEF70B9\X0\ 1 \X2\590476849ED88BA47B2653F7\X0\',$,IFCBOOLEAN(.F.),$);
#518= IFCPROPERTYSINGLEVALUE('\X2\7EBF578B56FE6848\X0\',$,IFCLABEL('-3000010'),$);
#519= IFCPROPERTYSINGLEVALUE('\X2\7B2653F7\X0\',$,IFCLABEL('\X2\6B638D1F96F668079AD8\X0\: \X2\6B638D1F96F668079AD8\X0\'),$);
#520= IFCPROPERTYSINGLEVALUE('\X2\7EBF5BBD\X0\',$,IFCIDENTIFIER('1'),$);
#521= IFCPROPERTYSINGLEVALUE('\X2\57FA9762\X0\',$,IFCIDENTIFIER('\X2\987976EE57FA70B9\X0\'),$);
#522= IFCPROPERTYSINGLEVALUE('\X2\989C8272\X0\',$,IFCINTEGER(0),$);
#523= IFCPROPERTYSINGLEVALUE('\X2\7AEF70B9\X0\ 2 \X2\590476849ED88BA47B2653F7\X0\',$,IFCBOOLEAN(.T.),$);
#524= IFCPROPERTYSET('37ewmm4Kv6cQu64rwpHHv4',#41,'\X2\68078BC66570636E\X0\',$,(#512,#514,#515));
#526= IFCRELDEFINESBYPROPERTIES('0iUkxKR$1ElPYxY58xYmee',#41,$,$,(#98),#524);
#529= IFCPROPERTYSET('3nBD1sYVj1ugRjZiF8sZks',#41,'\X2\9650523667614EF6\X0\',$,(#513));
#531= IFCRELDEFINESBYPROPERTIES('1456KQ9rbFXQN216uvsvdq',#41,$,$,(#98),#529);
#534= IFCPROPERTYSET('0_7wZCFIb1yvQR0mp5v2Kz',#41,'\X2\5C3A5BF868076CE8\X0\',$,(#516));
#536= IFCRELDEFINESBYPROPERTIES('2j$iH7YyvCmAhT5Mv1Dezv',#41,$,$,(#98),#534);
#539= IFCPROPERTYSET('1Q2gCuDwP4nAky2fvUqdJ6',#41,'\X2\56FE5F62\X0\',$,(#517,#518,#519,#520,#522,#523));
#541= IFCPROPERTYSET('23jNTcz5XE7uypAJEWXW_t',#41,'\X2\9650523667614EF6\X0\',$,(#521));
#549= IFCRELAGGREGATES('15QLNquRr7z8gHEyyB1gQn',#41,$,$,#79,(#500));
#553= IFCRELAGGREGATES('2svsnzqQ5DDPP7GjAu8AV0',#41,$,$,#500,(#89));
#557= IFCRELAGGREGATES('3mQBaTfuH9QBHDcYQBQvNl',#41,$,$,#89,(#98));
#561= IFCPROPERTYSINGLEVALUE('NumberOfStoreys',$,IFCINTEGER(1),$);
#562= IFCPROPERTYSET('00MH$JGKf3UPKpuzPL4IyB',#41,'Pset_BuildingCommon',$,(#561));
#564= IFCRELDEFINESBYPROPERTIES('0Y07auDPb0cfkb0qmNNsnO',#41,$,$,(#89),#562);
#568= IFCPROPERTYSINGLEVALUE('\X2\7EC47EC7540D79F0\X0\',$,IFCTEXT(''),$);
#569= IFCPROPERTYSINGLEVALUE('\X2\987976EE57305740\X0\',$,IFCTEXT('\X2\8BF757286B6459048F93516557305740\X0\'),$);
#570= IFCPROPERTYSINGLEVALUE('\X2\987976EE53D15E0365E5671F\X0\',$,IFCTEXT('\X2\51FA56FE65E5671F\X0\'),$);
#571= IFCPROPERTYSINGLEVALUE('\X2\5EFA7B51540D79F0\X0\',$,IFCTEXT(''),$);
#572= IFCPROPERTYSINGLEVALUE('\X2\5BA2623759D3540D\X0\',$,IFCTEXT('\X2\624067098005\X0\'),$);
#573= IFCPROPERTYSINGLEVALUE('\X2\987976EE72B66001\X0\',$,IFCTEXT('\X2\987976EE72B66001\X0\'),$);
#574= IFCPROPERTYSINGLEVALUE('\X2\4F5C8005\X0\',$,IFCTEXT(''),$);
#575= IFCPROPERTYSINGLEVALUE('\X2\987976EE540D79F0\X0\',$,IFCTEXT('\X2\987976EE540D79F0\X0\'),$);
#576= IFCPROPERTYSINGLEVALUE('\X2\7EC47EC763CF8FF0\X0\',$,IFCTEXT(''),$);
#577= IFCPROPERTYSINGLEVALUE('\X2\987976EE7F1653F7\X0\',$,IFCTEXT('\X2\987976EE7F1653F7\X0\'),$);
#578= IFCPROPERTYSET('0p_UkGJff1xRaGByJ3qIKs',#41,'\X2\68078BC66570636E\X0\',$,(#568,#571,#574,#576));
#580= IFCRELDEFINESBYPROPERTIES('0ypwAhOXT7ExStNWxNKq9R',#41,$,$,(#89),#578);
#583= IFCPROPERTYSET('3CWGAOs5bBuPQ11YSV31vh',#41,'\X2\51764ED6\X0\',$,(#569,#570,#572,#573,#575,#577));
#585= IFCRELDEFINESBYPROPERTIES('2LnORrca542uNVmJ52gtRG',#41,$,$,(#89),#583);
#588= IFCRELASSOCIATESMATERIAL('1VzSC8jhDB_9e6UhW$l0ri',#41,$,$,(#122,#256,#348,#358,#426),#125);
#595= IFCRELDEFINESBYTYPE('1mnZjAsM96dO0Qv3k6kssA',#41,$,$,(#256),#122);
#598= IFCRELDEFINESBYTYPE('1Vy00u9ir8mRIDokXYcYNg',#41,$,$,(#358),#348);
#601= IFCRELDEFINESBYPROPERTIES('0N33EoK$f1FRVKPN3GSby5',#41,$,$,(#256,#358),#321);
#619= IFCPRESENTATIONLAYERASSIGNMENT('S-BEAM-____-OTLN',$,(#415,#421),$);
#621= IFCPRESENTATIONLAYERASSIGNMENT('S-COLS-____-OTLN',$,(#114,#247,#342,#352),$);
...全文
277 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Gustavo_Fring 2019-06-25
  • 打赏
  • 举报
回复
博主 能不能私聊个联系方式,遇到跟你相似的问题了
sponore 2015-06-02
  • 打赏
  • 举报
回复
引用 2 楼 u014024998 的回复:
这是java代码么
不是
饭饭a不 2015-06-02
  • 打赏
  • 举报
回复
这是java代码么
sponore 2015-06-01
  • 打赏
  • 举报
回复
前面还有代码,不能用行数确定,我要提取下面有下划线的数据 #426=IFCBEAM('11111',#41,'\X2\6DF751DD571F\X0\-\X2\77E95F626881\X0\:400x800mm:236368',$,'\X2\6DF751DD571F\X0\-\X2\77E95F626881\X0\:400x800mm:153240',#401,#424,'236368'); #444=IFCPROPERTYSINGLEVALUE('\X2\526A5207957F5EA6\X0\',$,IFCLENGTHMEASURE(1000.),$); #447=IFCPROPERTYSINGLEVALUE('h',$,IFCLENGTHMEASURE(100.),$); #449=IFCPROPERTYSINGLEVALUE('b',$,IFCLENGTHMEASURE(100.),$); 输入到一个新的txt文件 内容为 <梁 rdf:ID="梁1"> <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >11111</rdfs:comment> <长rdf:datatype="http://www.w3.org/2001/XMLSchema#float" >1000.0</长> <高 rdf:datatype="http://www.w3.org/2001/XMLSchema#float" >100.0</高> <宽 rdf:datatype="http://www.w3.org/2001/XMLSchema#float" >100.0</宽> </梁>

50,451

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧