Results 1 to 13 of 13
Thread: Deleting Files Using Java!
- 06-13-2011, 07:35 AM #1
Deleting Files Using Java!
Hello everyone! As some people may know, I am creating a register user program. Now I would like to be able to delete accounts. And with that I mean that I wanna be able to delete text files. I was a little unsure if I should have created this thread in the "Advanced Java" part of the forum, but I will hand that over to some of the forum moderators! Please reply for an answer, I really need it! :)
Sincerely Alerhau
- 06-13-2011, 07:41 AM #2
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
What have you tried so far? Do you have compile or run time error? Which line throws the error?
- 06-13-2011, 07:45 AM #3
I have'nt really tried anything so far, I needed help because I don't know how to do :)
- 06-13-2011, 07:55 AM #4
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
- 06-13-2011, 08:02 AM #5
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
- 06-13-2011, 09:05 AM #6
Thankyou very much! That was very helpful! :)
- 06-13-2011, 09:10 AM #7
No, File (Java Platform SE 6)
Please don't post links to old EOL versions. Bookmark this page:
Java Platform SE 6
db
- 06-13-2011, 09:13 AM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
There is nothing advanced about it; if you want to do something with files, the first thing to do is read the API documentation for the File class; as usual there answer can be found in there.
kind regards,
Jos
edit: dang, there were no replies mentioning the File class when I read the thread and typed my answer ... they doing it on purpose, I'm sure ;-)Last edited by JosAH; 06-13-2011 at 09:20 AM.
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-13-2011, 09:22 AM #9
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
I honestly did not check the version of link. My mistake :)
- 06-13-2011, 09:27 AM #10
The older versions of the API usually come up first in a search as a result of the cumulative ranking over the years. That most people click the first link only ensures that the latest API will never make it to the top of the first page.
That's why I recommended that you bookmark the index page for the SE 6 API.
db
- 06-13-2011, 09:29 AM #11
- 06-13-2011, 09:36 AM #12
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
I did. Thanks for the info.
- 06-13-2011, 09:49 AM #13
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Deleting Cookies in Java
By Solarsonic in forum NetworkingReplies: 26Last Post: 05-22-2011, 03:52 AM -
Executing Command line commands from java - problem with deleting a file
By efebatistaarda in forum Advanced JavaReplies: 7Last Post: 02-10-2011, 07:37 PM -
Deleting and Adding Lists in Java Applets
By Bomber_Will in forum Java AppletsReplies: 4Last Post: 11-28-2008, 06:52 AM -
Deleting files after filtering the extensions
By Java Tip in forum Java TipReplies: 0Last Post: 01-25-2008, 07:00 PM -
Deleting an directory/subdirectory/files
By Java Tip in forum Java TipReplies: 0Last Post: 01-13-2008, 07:18 AM


LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks