🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #458

Re: Odczyt pliku w Javie

#458
From: Artur Biesiadowski
Date: Wed, 02 Apr 1997 11:55
18 lines
1105 bytes
Radoslaw Poplawski (radekp@usa.net) wrote:
: public static boolean Czytaj(String Plik)
: {
: 	try {
: 	File PlikWej = new File(Plik);
: 	FileInputStream strwej = new FileInputStream(PlikWej);
: 	int status;
: 	byte plik[] = new byte[20000]; //na wczytywany plik

: 	status = strwej.read(plik[]);

Powinno byc 
	status = strwej.read(plik);
Przy odwolaniach do tablicy jako calosci nie stosuje sie []
np. strwej.length a nie strwej[].length. To samo dotyczy przekazywania
parametrow.

Artur
Technical Details
Message-ID: <5hthg7$bc0@sunrise.pg.gda.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!news.nask.pl!sunrise.pg.gda.pl!sunrise.pg.gda.pl!not-for-mail
References: <33423e56.3340080@news.icm.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!news.nask.pl!sunrise.pg.gda.pl!sunrise.pg.gda.pl!not-for-mail
From: abies@sunrise.pg.gda.pl (Artur Biesiadowski)
Newsgroups: pl.comp.lang.java
Subject: Re: Odczyt pliku w Javie
Date: 2 Apr 1997 13:55:51 +0200
Organization: Politechnika Gdanska
Lines: 18
Message-ID: <5hthg7$bc0@sunrise.pg.gda.pl>
References: <33423e56.3340080@news.icm.edu.pl>
NNTP-Posting-Host: sunrise.pg.gda.pl
X-Newsreader: TIN [version 1.2 PL2]
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit