Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!aioe.org!newsfeed.CARNet.hr!Iskon!not-for-mail From: Zlatko =?UTF-8?B?xJB1cmnEhw==?= Newsgroups: comp.lang.java.programmer Subject: Re: A strange behaviour of a File property Date: Sat, 12 Nov 2011 16:09:58 +0100 Organization: Iskon Internet d.d. Lines: 20 Message-ID: References: <5980efbc-9010-4145-b886-fe106c5ac2d5@c18g2000yqj.googlegroups.com> <2735801.801.1321025690138.JavaMail.geo-discussion-forums@prdy11> <13969500.491.1321049846293.JavaMail.geo-discussion-forums@prou19> NNTP-Posting-Host: iskon8044.duo.carnet.hr Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: sunce.iskon.hr 1321110599 5054 31.147.127.108 (12 Nov 2011 15:09:59 GMT) X-Complaints-To: abuse@iskon.hr NNTP-Posting-Date: Sat, 12 Nov 2011 15:09:59 +0000 (UTC) User-Agent: KNode/4.7.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9881 Alexo wrote: > hei Eric your code works, but where is the trouble in mine? > > I think you've been told, here is the problem. You get the list of the "/" directory with the: File f = new File("/"); which is the wanted list of filenames. And then you're trying to take something out of the "." directory, each time you go through: file_array[i] = new File("." + "\\" + content[i]); -- Zlatko