🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #19613

Re: ��ν�hash������ݵ���Ϊxls��csv�ļ���ʽ��

#19613
From: javaphp
Date: Fri, 02 Jan 2004 00:39
25 lines
2127 bytes
www.apache.org

������и�poi����Ŀ���Խ����

--
�ս����һ��վ�㣬������ͬ��Ȥ�����Ѽ��ˣ�
ÿ�ܶ����и��£������к���Ķ�����������أ�
��ӭ���٣�

http://www.javaphp.com/

--
���ѡ�fireflyjava���ڡ���ν�hash������ݵ���Ϊxls��csv�ļ���ʽ����һ����д��:

> 
>�����Ƿ����ǵ�����.txt�ļ���Ȼ�ǿ��Եģ����ǿ�����û��xls�ĸ�ʽ�ÿ� 
>FileInputStream file_read=new FileInputStream(file);		 
>ObjectInputStream object_read=new ObjectInputStream(file_read); 
>hashtable=(Hashtable)object_read.readObject(); 
>Enumeration enu=hashtable.elements(); 
>while(enu.hasMoreElements()) 
>{score cj=(score)enu.nextElement();				     out_data.writeChars(cj.sno+"#");		
>		 out_data.writeChars(cj.sname+"#");				 out_data.writeChars(cj.score+"@"+"\n
>"); 
>}
Technical Details
Message-ID: <eaf9vvgkb2tm662jlqraonug1uvb6bouim@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.cn99.com!news.yaako.com!not-for-mail
References: <4A5cXB$A0U@bbs.zju.edu.cn>

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,90b58e0121f9ce53
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-01 16:37:53 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.cn99.com!news.yaako.com!not-for-mail
From: javaphp <javaphp@sohu.com>
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ��ν�hash������ݵ���Ϊxls��csv�ļ���ʽ��
Date: Fri, 02 Jan 2004 08:39:00 +0800
Organization: Bentium Ltd. (CN99)
Lines: 26
Message-ID: <eaf9vvgkb2tm662jlqraonug1uvb6bouim@4ax.com>
References: <4A5cXB$A0U@bbs.zju.edu.cn>
Reply-To: javaphp@sohu.com
NNTP-Posting-Host: 211.157.16.205
Mime-Version: 1.0
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: news.yaako.com 1073003857 20390 211.157.16.205 (2 Jan 2004 00:37:37 GMT)
X-Complaints-To: usenet@news.yaako.com
NNTP-Posting-Date: Fri, 2 Jan 2004 00:37:37 +0000 (UTC)
X-Newsreader: Forte Agent 1.8/32.548