🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1835

File I/O delete a file

#1835
From: Java
Date: Mon, 20 Aug 2001 10:16
25 lines
1529 bytes
Hi everybody!
Just one problem!
I work on an windows NT system with a NTFS file system.
When I try to delete a file in a directory that have a name longer 8
characters
the method File.delede() return false

this is my code....(I have a directory named SISDepositi that contain a file
prova1.txt)
...
File myFile = new File("C:\\SISDepositi\\prova1.txt");
myFile.delete();
...

when I change the directoty named SISDepositi in SISDep I solve this
problem.

how can I delete a file in a directory with a name longer than 8 characters?

Note that I can read the attributes of file prova1.txt (for instance its
length)

Thanks in advance

Alby
Technical Details
Message-ID: <3b80e32e_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.tele.dk!small.news.tele.dk!195.21.255.252!unlisys!news.snafu.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4b825dd75678cce4
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-08-20 03:36:31 PST
From: "Java" <betta@servitec.it>
Newsgroups: borland.public.jbuilder.java.api
Subject: File I/O delete a file
Date: Mon, 20 Aug 2001 12:16:23 +0200
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 195.120.34.206
Message-ID: <3b80e32e_2@dnews>
X-Trace: dnews 998302510 195.120.34.206 (20 Aug 2001 03:15:10 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.tele.dk!small.news.tele.dk!195.21.255.252!unlisys!news.snafu.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews