🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ����read���������

#20148
From: ������
Date: Tue, 23 Dec 2003 02:59
18 lines
1588 bytes
it returns the number of bytes actually read
�� �� liudejun (��ʵ���Ҳ���ӣľ) �Ĵ������ᵽ: ��
: read�����������أ�1��255������
: С�ܳ�ѧjava�������λ�������æ���Ǻǣ�лл�ˣ���
: int b;
: byte tom[]=new byte[2500];
: File f=new File("Hello.java);
: FileInputStream readfile=new FileInputStream(f);
: while((b=readfile.read(tom,0,10))!=-1)
:     {
:        String s=new String(tom,0,b);
: >>  .................<����ʡ��>............


--
 ���� ��Ĭ ���� ��� �ڼ� ���� �Ͽ� ���� ���� ��� �侲 ���

�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: 10.11.11.110]
Technical Details
Message-ID: <49kU8M$9yN@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,b97054e07c170992
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-22 18:55:31 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: windprayer.bbs@Freecity.dhs.org (������)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ����read���������
Date: 23 Dec 2003 02:59:46 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <49kU8M$9yN@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1072148374.A