🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

File I/O delete a file

#1834
From: Java
Date: Mon, 20 Aug 2001 10:16
25 lines
1507 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: <3b80e2e8_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4b825dd75678cce4,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-08-20 03:18:18 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: <3b80e2e8_1@dnews>
X-Trace: dnews 998302440 195.120.34.206 (20 Aug 2001 03:14:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews