🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#20149
From: ��ʵ���Ҳ���ӣľ
Date: Tue, 23 Dec 2003 03:03
20 lines
1750 bytes
��ô��������300���ֽڣ�read�ķ���ֵӦ���Ƕ��ٰ���
�ѵ���300���ҿ�������˵��ķ���ֵ��0��255��������ĩ�˷��أ�1��



�� �� windprayer (������) �Ĵ������ᵽ: ��
: 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)
: >>  .................<����ʡ��>............


--
�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: liudejun]
Technical Details
Message-ID: <49kU9j$9uI@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!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 19:00:31 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!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: liudejun.bbs@Freecity.dhs.org (��ʵ���Ҳ���ӣľ)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ����read���������
Date: 23 Dec 2003 03:03:02 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <49kU9j$9uI@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1072148445.A