Article View: borland.public.jbuilder.java.language
Article #16520How get length of file?
From: Marcel Hell
Date: Tue, 09 Feb 1999 00:00
Date: Tue, 09 Feb 1999 00:00
12 lines
961 bytes
961 bytes
Hi, my problem is the following: I have an application reading a file byte by byte via an FileInputStream. The bytes read are immediately written to another via a FileOutputStream. This works fine so far, NOW: I want the user to be able to follow the progress of the read-write action, so I am planning to use a JProgressBar. And here is my problem, HOW can I detect the length of the input file in order to set the maximum value in the JProgressBar? Could anyone help?? Regards Marcel Hell
Technical Details
Message-ID:
<79q4do$6r01@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c068c1d8bba70eeb,start X-Google-Attributes: gidf74b3,public From: "Marcel Hell" <MLP.HELL@student.unimaas.nl> Subject: How get length of file? Date: 1999/02/09 Message-ID: <79q4do$6r01@forums.borland.com> X-Deja-AN: 442522624 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.language