Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 移动互联网  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 这个程序应该怎么写?
feelyou





发贴: 4
积分: 0
于 2008-03-12 09:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我要把一个文本文件的内容有选择、规则地读到另外一个文档里
例子:
Name: 1
Status:2
URL:3
Phase: 4
Category:5
Reference:6
Reference: 7
Reference: 8
<--这里是回车-->
a
b
=================================================

Name: 11
Status:22
Phase: 44
Category:55
Reference:66
Reference: 77
Reference:88
<--这里是回车-->
c
d
~~~~~~~~~~
那么导入文本文件的格式应该这样:
1,2,3,4,5,6.7.8,a.b
11,22,null,44,55.66.77,88,c.d
~~~~~~~~~~~~~~~
即把每行第一个冒号之后的内容保留,把两个记录之间的连等号和reference下面的回车都去掉,对应入相应的内容,有些记录内容未必一致的,欠的就用null代替




话题树型展开
人气 标题 作者 字数 发贴时间
9292 这个程序应该怎么写? feelyou 514 2008-03-12 09:20
8787 Re:这个程序应该怎么写? feelyou 3074 2008-03-12 09:26

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923